宏观数据可以作为指标参数,带入训练模型。从tushare获取数据,简单、稳定,值得拥有。 官网地址https://tushare.pro/register?reg=243026
import tushare as ts
import pandas as pd
import matplotlib.pyplot as plt
rrr = ts.get_rrr()
rrr[:5]
money_supply = ts.get_money_supply()
money_supply[:5]
参数含义:
money_supply_bal = ts.get_money_supply_bal()
money_supply_bal[:5]
deposit = ts.get_deposit_rate()
deposit[:5]
loan = ts.get_loan_rate()
loan[:5]
gdp_quarter = ts.get_gdp_quarter()
gdp_quarter[:5]
gdp_for = ts.get_gdp_for()
gdp_for[:5]
gdp_pull=ts.get_gdp_pull()
gdp_pull[:5]
gdp_contrib = ts.get_gdp_contrib()
gdp_contrib[:5]
cpi = ts.get_cpi()
cpi[:5]
ppi = ts.get_ppi()
ppi[:5]