![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据分析
Blinkin
这个作者很懒,什么都没留下…
展开
-
Expected object of type bytes or bytearray, got: <class ‘str‘>
Expected object of type bytes or bytearray, got: <class ‘str’>参考:http://www.3qphp.com/python/scrapy/2827.html转载 2020-08-06 20:00:34 · 6518 阅读 · 0 评论 -
Pandas matplotlib 画图无法显示中文字体的问题
https://blog.csdn.net/lvshu_yuan/article/details/80413005转载 2020-08-04 17:58:45 · 447 阅读 · 0 评论 -
基于Python的Anaconda3,导包报错 cannot import name ‘Timestamp‘
https://blog.csdn.net/xufankang/article/details/82871578转载 2020-08-04 17:04:31 · 326 阅读 · 0 评论 -
python 运用pandas将数据写入同一个excel中的不同sheet
python 运用pandas将数据写入同一个excel中的不同sheet参考:https://blog.csdn.net/wangxingfan316/article/details/79628463?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-转载 2020-08-02 21:09:10 · 3274 阅读 · 0 评论 -
‘DataFrame‘ object has no attribute ‘cut‘
‘DataFrame’ object has no attribute ‘cut’**问题:**使用pandas时处理数据运用cut()函数处理数据时报错’DataFrame’ object has no attribute ‘cut’。**原因:**函数调用错误。**解决:**通过pandas库调用cut(),不能直接对数据使用。bins = [df.score.min()-1,400,450,df.score.max()+1]lable = ['一般','较好','优秀']df['类别']原创 2020-08-02 19:07:45 · 2558 阅读 · 0 评论 -
anaconda相关问题
anaconda相关问题一,安装入门参考文章,https://www.jianshu.com/p/eaee1fadc1e9二,修改镜像源参考文章,https://blog.csdn.net/qq_42038319/article/details/103488356原创 2020-07-16 14:08:54 · 129 阅读 · 0 评论 -
‘DataFrame‘ object has no attribute ‘dtype‘或者‘DataFrame‘ object has no attribute ‘str‘
‘DataFrame’ object has no attribute ‘dtype’或者’DataFrame’ object has no attribute ‘str’使用pandas学习数据分析时报错原因:使用函数str.strip()去除空格和函数dtype()查看数据类型时,只能一次对一列进行操作。解决:使用循环语句。df1 = df.copy() #复制一份文件,防止意外a1 = list(df.columns)df[a1]= df1[a1].astype(str)原创 2020-08-02 18:04:25 · 9520 阅读 · 0 评论