We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c2df4 commit 6f5ba5cCopy full SHA for 6f5ba5c
pandas_gbq/gbq.py
@@ -652,13 +652,13 @@ def _bqschema_to_nullsafe_dtypes(schema_fields):
652
See: http://pandas.pydata.org/pandas-docs/dev/missing_data.html
653
#missing-data-casting-rules-and-indexing
654
"""
655
- import pandas
+ import pandas.api.types
656
657
# If you update this mapping, also update the table at
658
# `docs/source/reading.rst`.
659
dtype_map = {
660
"FLOAT": np.dtype(float),
661
- "TIMESTAMP": pandas.DatetimeTZDtype(tz="UTC"),
+ "TIMESTAMP": pandas.api.types.DatetimeTZDtype(tz="UTC"),
662
"DATETIME": "datetime64[ns]",
663
"TIME": "datetime64[ns]",
664
"DATE": "datetime64[ns]",
0 commit comments