Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #433 补全获取股票行业分类数据 #434

Merged
merged 3 commits into from
Oct 11, 2017

Conversation

algony-tony
Copy link
Contributor

将后续页面的数据加上后, 新浪行业数据还是会比实际的股票数少, 估计是新浪那边股票分类不全

将后续页面的数据加上后, 新浪行业数据还是会比实际的股票数少, 估计是新浪那边股票分类不全
text = text.replace('{symbol', '{"symbol"')
jstr = json.dumps(text)
js = json.loads(jstr)
df = pd.DataFrame(pd.read_json(js, dtype={'code':object}), columns=ct.THE_FIELDS)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_industry_classified('sw') 会在此行报 ValueError: No ':' found when decoding object value

@jimmysoa jimmysoa merged commit 3bd28ba into waditu:master Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants