Skip to content

Commit 34b4a29

Browse files
Explicitly use nanosecond units when creating opal dataframe
There is a bug in pandas pandas-dev/pandas#55374
1 parent d498575 commit 34b4a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datahub/opal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def create_opal_frame() -> pd.DataFrame:
116116
An initial Dataframe for the opal data with key frame 0
117117
"""
118118
df = pd.DataFrame(0, index=range(1), columns=list(opal_headers.keys()))
119-
df["Time"] = pd.Timestamp(OPAL_START_DATE)
119+
df["Time"] = pd.Timestamp(OPAL_START_DATE).as_unit("ns") # type: ignore[attr-defined] # noqa: E501
120120

121121
return df
122122

0 commit comments

Comments
 (0)