```
a b c
id tstamp
0 2016-03-23 12:00:00 0 1 2
2016-03-23 12:00:00 3 4 5
1 2016-03-23 13:00:00 6 7 8
2016-03-23 13:00:00 9 10 11
2016-03-23 14:00:00 12 13 14
2 2016-03-23 14:00:00 15 16 17
3 2016-03-23 15:00:00 18 19 20
2016-03-23 16:00:00 24 25 26
5 2016-03-23 17:00:00 27 28 29 ```
0 2016-03-23 12:00:00
In [13]: df = pd.DataFrame([{'a': 1, 'b': 2, 'c':3}, {'a':4, 'b':5, 'c':6}])
In [14]: df
Out[14]:
a b c
0 1 2 3
1 4 5 6
In [15]: df.set_index(['a','b'], inplace=True)
In [16]: df
Out[16]:
c
a b
1 2 3
4 5 6
In [35]: df.index.to_frame()[[]].reset_index()
Out[35]:
a b
0 1 2
1 4 5