I have a DF(dataframe) that was created by taking a list of DF's with concat as such:
conc_list = pandas.concat(DF_list, keys=range(len(DF_list)), names= ['one','for_date_time_object'], sort= True)
but it puts the zeros at the end of the dataframe.
for_date_time_object one
2018-09-26 05:30:00 1 1537939800
2 1537939800
3 1537939800
2018-09-26 05:35:00 1 1537940100
2018-09-26 05:40:00 1 1537940400
2018-09-26 05:45:00 1 1537940700
2 1537940700
2018-09-26 05:50:00 1 1537941000
2018-09-26 05:55:00 1 1537941300
2018-09-26 06:00:00 1 1537941600
2018-11-07 05:30:00 0 1541595900
2018-11-07 05:31:00 0 1541595960
2018-11-07 05:32:00 0 1541596020
2018-11-07 05:33:00 0 1541596080
2018-11-07 05:34:00 0 1541596140
how can I get it to sort from 0-9?
for_date_time_object one
2018-09-26 05:30:00 0 1537939800
1 1537939800
2 1537939800
3 1537939800
2018-11-07 05:31:00 0 1541595960
2018-11-07 05:32:00 0 1541596020
2018-11-07 05:33:00 0 1541596080
2018-11-07 05:34:00 0 1541596140
2018-09-26 05:35:00 0 1537940100
2018-09-26 05:35:00 1 1537940100
2018-11-07 05:36:00 0 1541595960
2018-11-07 05:37:00 0 1541596020
2018-11-07 05:38:00 0 1541596080
2018-11-07 05:39:00 0 1541596140
2018-09-26 05:40:00 0 1537940400
2018-09-26 05:40:00 1 1537940400
Thanks for the help.