Skip to content

Commit 6f5ba5c

Browse files
committed
Use pandas.api.types for extension dtype constructor.
1 parent e1c2df4 commit 6f5ba5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas_gbq/gbq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,13 +652,13 @@ def _bqschema_to_nullsafe_dtypes(schema_fields):
652652
See: http://pandas.pydata.org/pandas-docs/dev/missing_data.html
653653
#missing-data-casting-rules-and-indexing
654654
"""
655-
import pandas
655+
import pandas.api.types
656656

657657
# If you update this mapping, also update the table at
658658
# `docs/source/reading.rst`.
659659
dtype_map = {
660660
"FLOAT": np.dtype(float),
661-
"TIMESTAMP": pandas.DatetimeTZDtype(tz="UTC"),
661+
"TIMESTAMP": pandas.api.types.DatetimeTZDtype(tz="UTC"),
662662
"DATETIME": "datetime64[ns]",
663663
"TIME": "datetime64[ns]",
664664
"DATE": "datetime64[ns]",

0 commit comments

Comments
 (0)