Skip to content

Commit

Permalink
Explicitly use nanosecond units when creating opal dataframe
Browse files Browse the repository at this point in the history
There is a bug in pandas pandas-dev/pandas#55374
  • Loading branch information
AdrianDAlessandro committed Oct 3, 2023
1 parent d498575 commit 8689baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub/opal.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def create_opal_frame() -> pd.DataFrame:
An initial Dataframe for the opal data with key frame 0
"""
df = pd.DataFrame(0, index=range(1), columns=list(opal_headers.keys()))
df["Time"] = pd.Timestamp(OPAL_START_DATE)
df["Time"] = pd.Timestamp(OPAL_START_DATE).as_unit("ns")

return df

Expand Down

0 comments on commit 8689baf

Please sign in to comment.