一、Jupyter基础
参考文档
- 具体教程见官方文档
- 推荐看这个作者的详细中文教程
- Jupyter Notebook 添加代码自动补全功能
- 玩转Jupyter Notebook-(入门篇)
- Jupyter Notebook 推荐16个超实用插件
安装及启动
-
安装前提 安装Jupyter Notebook的前提是需要安装了Python(3.3版本及以上,或2.7版本)。
-
开发环境准备 用进入到准备开发的开发环境(参考虚拟环境搭建,使用workon进入虚拟环境)
-
安装
pip install jupyter
-
启动
① 默认端口启动
Jupyter Notebook
启动过程中终端显示内容如下:$ jupyter notebook [I 08:58:24.417 NotebookApp] Serving notebooks from local directory: /Users/catherine [I 08:58:24.417 NotebookApp] 0 active kernels [I 08:58:24.417 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/ [I 08:58:24.417 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
注意:之后在Jupyter Notebook的所有操作,都请保持终端不要关闭,因为一旦关闭终端,就会断开与本地服务器的链接,你将无法在Jupyter Notebook中进行其他操作
浏览器地址栏中默认地将会显示:http://localhost:8888。其中,“localhost”指的是本机,“8888”则是端口号。
② 指定端口启动jupyter notebook --port <port_number>
其中,“<port_number>”是自定义端口号,直接以数字的形式写在命令当中,数字两边不加尖括号“<>”。如:jupyter notebook --port 9999,即在端口号为“9999”的服务器启动Jupyter Notebook。
二、Numpy基础
参考文档
中文官方文档:https://www.numpy.org.cn/user/setting-up.html
菜鸟教程:https://www.runoob.com/numpy/numpy-tutorial.html
三、Pandas基础
参考文档
中文官方文档:https://www.pypandas.cn/docs/
pandas主要功能详解:https://blog.csdn.net/weixin_41770169/article/details/79539232
三、量化分析
测试平台:米筐量化
参考博客:
alphalens教程
1、alphalens教程1–整理好你的数据
2、alphalens教程2–基于return的因子分析
3、alphalens教程3–Information Analysis
4、alphalens教程4–Turnover Analysis
相关资源:
1、Python量化资源大合集
2、什么是多因子量化选股模型?
3、Python量化Fama-French三因子模型