Recently, I have encountered a code segment
import numpy as np
from sklearn.svm import SVR
import matplotlib.pyplot as plt
import time
import DataAPI
start='20160101'
end='20170101'
code='600000'
df=DataAPI.MktEqudAdjAfGet(ticket=code,beginData=start,endDate=end,filed=u'tradeDate,closePrice',pandas=1)
df=df.set_index('tradeDate').copy()
I don't know where does
DataAPI.MktEqudAdjAfGet(ticket=code,beginData=start,endDate=end,filed=u'tradeDate,closePrice',pandas=1)
come from . How to import this package so that the code can run ? I have try
pip install DataAPI
but When I try to import this package, the error below showed up
The error is 'No module named pyfin'.
And then I try to
pip install pyfin
But the result is that I have already possessed this package and up-to-date.