GithubHelp home page GithubHelp logo

y3jo6 / pycontw2018tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from victorgau/pycontw2018tutorial

0.0 1.0 0.0 5.7 MB

PyCon TW 2018 Tutorial - 用 Python 做股票分析

Jupyter Notebook 94.32% Python 5.68%

pycontw2018tutorial's Introduction

用 Python 做股票分析

投影片網址:https://bit.ly/2INS1W0

在本次的課程中,我們會教大家使用 Python 做股票分析。內容會含括:

  • Numpy, MatPlotLib, Pandas 的簡單使用技巧。
  • 使用爬蟲抓取股價歷史資料、財報資料等。
  • 實作選股法則。
  • 實作投資策略。
  • 利用回測來評估策略的好壞。
  • 從無到有建構出自己的股票分析系統。

在課程中我們預計會使用到 Anaconda (Python 懶人包) 及 Visual Studio Code (編輯器),可以的話請大家先下載及安裝。

下方連結為上課所使用的軟體 (請預先下載至筆電):

如果不知道怎麼使用 Anaconda 來安裝 Python,可以操考這一個 影片教學

如果之前沒有安裝過 Pyhton,請在安裝時將"Add Anaconda to my PATH environment variable" 選項打勾,這樣在命令列上才可以找到相關執行檔的路徑。

新版的 Anaconda 安裝檔在安裝時會提示您要不要安裝 "Visual Studio Code",您可以選擇從 Anaconda 的安裝檔裡面直接安裝 Visual Studio Code,這樣就不用另外下載 Visual Studio Code 來安裝了。

安裝時可能會遇到問題的套件

pandas-datareader 的安裝

理論上,我們已經不需要使用 pandas-datareader,因為 pandas-datareader 已經不再支援 yahoo finance,而且對於 google finance 也有可能隨時不支援。但是,因為 ffn 會使用到 pandas-datareader,所以還是要安裝一個可以使用的 pandas-datareader。

由於 pandas 改版的關係,有一些 API 的位置變了,所以如果要讓 pandas-datareader 可以跑,必須安裝 dev 版的 pandas-datareader,安裝方法如下:

pip install git+https://github.com/pydata/pandas-datareader.git

請參閱:pandas-datareader官網說明文件

talib 的安裝

欲在 windows 上安裝 talib,請直接至Unofficial Windows Binaries for Python Extension Packages下載對應的 .whl 檔回來安裝。

pycontw2018tutorial's People

Contributors

victorgau avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.