Skip to content

Commit

Permalink
fix datetime type in get_prices_daily_quotes (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-meitoma authored Apr 11, 2023
1 parent f5bd537 commit 16083c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquantsapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ def get_prices_daily_quotes(
cols = constants.PRICES_DAILY_QUOTES_COLUMNS
if len(df) == 0:
return pd.DataFrame([], columns=cols)
df["Date"] = pd.to_datetime(df["Date"], format="%Y-%m-%d")
df.sort_values(["Code", "Date"], inplace=True)
return df[cols]

Expand Down

0 comments on commit 16083c1

Please sign in to comment.