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 ae52904 commit 67f55f3Copy full SHA for 67f55f3
pandas/core/dtypes/dtypes.py
@@ -2282,9 +2282,7 @@ def numpy_dtype(self) -> np.dtype:
2282
# regardless of the pyarrow timestamp units.
2283
# This can be removed if/when pyarrow addresses it:
2284
# https://github.com/apache/arrow/issues/34462
2285
- if self.pyarrow_dtype.tz is not None:
2286
- np.dtype(self.pyarrow_dtype.to_pandas_dtype())
2287
- else:
+ if self.pyarrow_dtype.tz is None:
2288
return np.dtype(f"datetime64[{self.pyarrow_dtype.unit}]")
2289
if pa.types.is_duration(self.pyarrow_dtype):
2290
# pa.duration(unit).to_pandas_dtype() returns ns units
0 commit comments