![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小记
浩仔,爬
这个作者很懒,什么都没留下…
展开
-
pandas写入数据到Excel
pandas将dataframe写入Excel # 大数据写入, split_count = df.shape[0] // 1000000 + 1 for i in range(split_count): print(i) writer = pd.ExcelWriter("{}.xlsx".format(i), engine='xlsxwriter', options={'stri原创 2020-11-13 17:46:37 · 14104 阅读 · 6 评论 -
python文件路径的几种写法
import os print('------获取当前--------') 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 · 2343 阅读 · 0 评论