
小记
浩仔,爬
这个作者很懒,什么都没留下…
展开
-
pandas写入数据到Excel
pandas将dataframe写入Excel# 大数据写入,split_count = df.shape[0] // 1000000 + 1for i in range(split_count): print(i) writer = pd.ExcelWriter("{}.xlsx".format(i), engine='xlsxwriter', options={'stri原创 2020-11-13 17:46:37 · 14427 阅读 · 6 评论 -
python文件路径的几种写法
import osprint('------获取当前--------')print(os.getcwd())print(os.path.abspath(os.path.dirname(__file__)))print('-------获取上级---------')print(os.path.abspath(os.path.dirname(os.getcwd())))print(os.path.abspath(os.path.dirname(os.path.dirname(__file__))))原创 2020-06-06 11:01:33 · 2411 阅读 · 0 评论