1、排序 DataFrame 按照Index排序
Series.order()进行排序,而DataFrame则用sort或者sort_index或者sort_values
2、去重,
dt = dt.drop_duplicates(subset=['Date'], keep='first')
1、排序 DataFrame 按照Index排序
Series.order()进行排序,而DataFrame则用sort或者sort_index或者sort_values
2、去重,
dt = dt.drop_duplicates(subset=['Date'], keep='first')