Maybe create a list of lists, where each sub list contains data for each row. Then sort by the element corresponding to the latest
不要为这些烦恼,使用一个数据帧。对其进行排序,然后重新保存excel文件。在
import pandas as pd
df = pd.read_excel(input_excel_path, sheetname=sheet_name)
df.sort(column_name_to_sort_by, inplace=True, ascending=False) # the default for 'ascending' is True
df.to_excel(output_excel_path)
不要为这些烦恼,使用一个数据帧。对其进行排序,然后重新保存excel文件。在
相关问题 更多 >
编程相关推荐