rainit2006 / Python-room

my python room
0 stars 0 forks source link

数据分析处理 #3

Open rainit2006 opened 7 years ago

rainit2006 commented 7 years ago

rainit2006 commented 6 years ago

网络资源 https://www.zhihu.com/question/37180159

常用的库

IDE工具 推荐两个: spyder和jupyter notebook, 这两个通过安装Anaconda,就同时有了。

rainit2006 commented 6 years ago

NumPy: import numpy as np

入門サイト(Python でデータサイエンス) http://pythondatascience.plavox.info/

rainit2006 commented 6 years ago

Jupiter notebook http://codingpy.com/article/getting-started-with-jupyter-notebook-part-1/

■ shortcut key Shift+Enter:セルの実行、次のセルへ移動 ctrl +Enter:セルの実行のみ

■ notebook 有一个非常有趣的特性,就是可以修改之前的单元格,对其重新计算,这样就可以更新整个文档了。

■Markdown单元格 (Jupyter 不再区分Header, 统一为Markdown单元格) 点击在快捷键栏中的单元格类型,将其变成一个标题单元格(Markdown)。 image image

■如何编写数学公式: Point:在Markdown模式里输入,然后点击RUN Cell才可以。

https://www.jianshu.com/p/93ccc63e5a1b 为了在行内编写数学公式,你需要使用单$符, 比如:$y=mx+b$,在 $符之间的所有内容,都将被视为数学符号进行渲染。 image

在LaTeX中,符号之间的空格会被自动移除,所以$$ \int f(x) dx $$ 显示为 image 函数和 dx 之间没有空格,你能通过 \, 或 \: 或 \;添加空格,其空格宽度分别为从小到大。所以 $$\int f(x) ; dx$$ 显示为: image

■使用matplotlib image 注意:要想在Jupiter notebook里显示出matplotlib图表,必须第一行加上“%matplotlib inline”。

rainit2006 commented 6 years ago

案例

rainit2006 commented 5 years ago

Pandas_DBReader https://note.nkmk.me/python-pandas-datareader-stock-population/