Skip to content

Commit

Permalink
casting datetime to datetime64[us]
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Jun 25, 2024
1 parent d071808 commit 498dbec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dask_bigquery/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ def df():
}
for i in range(10)
]
df = pd.DataFrame(records)

yield pd.DataFrame(records)
df["timestamp"] = (
df["timestamp"]
.dt.tz_convert("UTC")
.dt.tz_localize(None)
.astype("datetime64[us]")
)
yield df


@pytest.fixture(scope="module")
Expand Down

0 comments on commit 498dbec

Please sign in to comment.