![](https://img-blog.csdnimg.cn/20190918140037908.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
1.1 python-pandas
python3.7的pandas包使用
word添
这个作者很懒,什么都没留下…
展开
-
1.1.2 两个dataframe写入excel 多个 sheet pandas基础
df.to_excel函数每次写入,都会重新创建一个新的文件。前面的文件会被覆盖掉,只能是最后一个DF写入的结果文件。 使用pd.ExcelWriter可解决这个问题:xlswriter = pd.ExcelWriter('F:/test.xlsx')df1.to_excel(xlswriter,'test1')df2.to_excel(xlswriter,'测试') ...原创 2020-03-31 10:03:10 · 575 阅读 · 0 评论 -
1.1.0 pandas基础
a、pandas包(anaconda自带):第一行即可,第二行的链接太深了可以不看https://segmentfault.com/a/1190000018281039?utm_source=tag-newesthttps://www.jianshu.com/p/5809f6cf78ca 看到第10章即可。dataframe中Rolling函...原创 2020-03-30 10:52:48 · 141 阅读 · 0 评论 -
1.1.1 dataframe 逆序 倒序
方法1:data.reindex(index=data.index[::-1])方法2:data.iloc[::-1]原创 2020-03-30 10:41:13 · 15056 阅读 · 0 评论