Skip to content

Commit

Permalink
get_market_fundamental_by_date()의 인덱스를 datetime으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-yoo committed Nov 3, 2019
1 parent ec96b00 commit f00d3e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pykrx/website/krx/market/wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ def get_market_fundamental_by_date(fromdate, todate, isin, market="ALL"):
df = df.replace(',', '', regex=True)
df = df.astype({"DIV": np.float64, "BPS": np.int32,
"PER": np.float64, "EPS": np.int32}, )
df.set_index('날짜', inplace=True)
df = df.set_index('날짜')
df.index = pd.to_datetime(df.index, format='%Y%m%d')
return df.sort_index()


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name = 'pykrx',
version = '0.1.4',
version = '0.1.8',
description = 'KRX scraping',
url = 'https://github.com/sharebook-kr/pykrx',
author = 'Brayden Jo, Lukas Yoo',
Expand Down

0 comments on commit f00d3e5

Please sign in to comment.