Skip to content

Commit

Permalink
parse time column in ForecastClient
Browse files Browse the repository at this point in the history
  • Loading branch information
attila-balint-kul committed Jun 21, 2023
1 parent 84da5fc commit 9d8be3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/enfobench/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.4"
__version__ = "0.0.5"
3 changes: 2 additions & 1 deletion src/enfobench/evaluation/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ def predict(
if not response.ok:
response.raise_for_status()

df = pd.DataFrame.from_records(response.json()['forecast'])
df = pd.DataFrame.from_records(response.json()["forecast"])
df['ds'] = pd.to_datetime(df['ds'])
return df

0 comments on commit 9d8be3d

Please sign in to comment.