Pandas
fb Open Anaconda Prompt and install fbprophet conda install -c conda-forge fbprophet If kernel error occured in jupyter notebook, open Anaconda prompt and view location. Open kernal.json, see if python editor have the same path jupyter ker…
Using Python to find currency correlation. The correlation coefficient represents a statistical relationship between 2 variables. Near +1 or -1 means the currency pairs are highly correlated Useful in hedging and diversifying risk Official…
Install python extension package (check version) TA-lib-0.4.17-cp37-cp37m-win32.whl cp37 = python 3.7, win32 = x32, amd64 = x64 mpl_finance Tutorial: https://ithelp.ithome.com.tw/articles/10206894 Go to Anaconda installed location pip inst…
1. Finding Historical Prices import requests In site url, period1 is starting time, period 2 is ending time site="https://query1.finance.yahoo.com/v7/finance/download/2330.TW?period1=0&period2=1549258857&interval=1d&events=history&crumb=hP…
Download csv from finance.yahoo.com/quote/AAPL/history HK Stocks csv https://hk.finance.yahoo.com/quote/0012.HK/history?p=0012.HK Financial info https://finance.yahoo.com/quote/AAPL/financials?p=AAPL Lesson 1, Lesson 2, Lesson 3, Lesson 4,…
Jupyter Notebook: Lesson 6, Lesson 7, Lesson 8, Lesson 9, Lesson 10, Lesson 11, Lesson 12, Lesson 13, Lesson 14 Library https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.join.html Open documentation: Shift+Tab sho…
Data frame - main object in pandas, used to represent tabular data (rows and columns) Shortcut: B - insert new cell below / A - insert cell above Run cell - Ctrl + Enter Library: https://pandas.pydata.org/pandas-docs/stable/ Notes: Lesson …