chore: more generic datetime selection
This commit is contained in:
@@ -1546,7 +1546,7 @@ class RPC:
|
|||||||
|
|
||||||
# band-aid until this is fixed:
|
# band-aid until this is fixed:
|
||||||
# https://github.com/pandas-dev/pandas/issues/45836
|
# https://github.com/pandas-dev/pandas/issues/45836
|
||||||
datetime_types = ["datetime", "datetime64", "datetime64[ns, UTC]"]
|
datetime_types = ["datetime", "datetime64", "datetimetz"]
|
||||||
date_columns = dataframe.select_dtypes(include=datetime_types)
|
date_columns = dataframe.select_dtypes(include=datetime_types)
|
||||||
for date_column in date_columns:
|
for date_column in date_columns:
|
||||||
# replace NaT with `None`
|
# replace NaT with `None`
|
||||||
|
|||||||
Reference in New Issue
Block a user