本文共 217 字,大约阅读时间需要 1 分钟。
import pandas as pddata = pd.read_excel(r'C:/Users/14369/Desktop/博文markdown版/测试数据结果.xls')data.columnsdata.fillna(method='ffill',inplace=True)data.to_excel(r'C:/Users/14369/Desktop/博文markdown版/测试数据结果2.xls',index=False)
转载地址:http://wpesn.baihongyu.com/