pandas sub columns

Solutions on MaxInterview for pandas sub columns by the best coders in the world

showing results for - "pandas sub columns"
Nicola
29 Jul 2016
1|     Start      |       Intermediary       |        End        |
2|       |        |            |             |         |         |
3_________________________________________________________________
4| s_lat | s_lng  |  i_lat     |  i_lng      | e_lat   | e_lng   |
5
6mux = pd.MultiIndex.from_product([['Start','Intermediary','End'], ['lat','lng']])
7df = pd.DataFrame(data, columns=mux)
8