Skip to content

Commit

Permalink
test: fix test code for pandas compatability
Browse files Browse the repository at this point in the history
Signed-off-by: Hai Nguyen <[email protected]>
  • Loading branch information
sudohainguyen committed Feb 18, 2024
1 parent f898881 commit 3740326
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ def test_historical_features_with_entities_from_query(

table_from_sql_entities = job_from_sql.to_arrow().to_pandas()
for col in table_from_sql_entities.columns:
if expected_df_query[col].dtype == "datetime64[ns]":
expected_df_query[col] = expected_df_query[col].dt.tz_localize("UTC")
expected_df_query[col] = expected_df_query[col].astype(
table_from_sql_entities[col].dtype
)
Expand Down

0 comments on commit 3740326

Please sign in to comment.