![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
3_数据分析与可视化
一页孤沙
教育博主
展开
-
用Jupyter Notebook做数据分析时,有时候运行代码时会有很多 warning输出,如提醒新版本之类的,如果不想这些乱槽槽的输出可以这样:
import warnings warnings.filterwarnings('ignore')原创 2019-04-26 19:26:53 · 3306 阅读 · 0 评论 -
Python数据分析之pandas.read_csv参数说明
读取CSV(逗号分割)文件到DataFrame也支持文件的部分导入和选择迭代更多帮助参见:http://pandas.pydata.org/pandas-docs/stable/io.html参数:filepath_or_buffer: str,pathlib。str, pathlib.Path, py._path.local.LocalPath or any object wi...转载 2019-05-04 15:12:04 · 229 阅读 · 0 评论 -
jupyter notebook中,用matplotlib绘图中文显示乱码(亲测有效!)
import matplotlib.pyplot as pltplt.rcParams['font.family'] = 'SimHei'原创 2019-04-24 18:54:43 · 2558 阅读 · 2 评论 -
Python numpy中axis的含义
不同的编程语言对于多维数组的索引方式往往不太一样,下面主要讲一下python numpy里面axis的含义numpy当中axis的值表示的是这个多维数组维度的下标,比如有一个二维数组a,a的shape是(5,6),也就是说a有5行6列,axis=0表示的就是[5,6]中的第一维,也就是行,axis=1表示的是[5,6]中的第二个维度,也就是列。通常numpy里面的一些降维操作(aggreg...转载 2019-05-05 08:11:09 · 439 阅读 · 0 评论 -
为Jupyter Notebook 添加目录索引~
步骤一:安装扩展包jupyter_contrib_nbextensionspip install jupyter_contrib_nbextensions步骤二:配置nbextensionsjupyter contrib nbextension install --user步骤三:启动Jupyter Notebook ,点选nbextensions,勾选Tabl...原创 2019-07-23 21:04:59 · 2140 阅读 · 0 评论