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 29542b2 commit 16e727fCopy full SHA for 16e727f
pandas/tests/copy_view/test_astype.py
@@ -11,7 +11,6 @@
11
Series,
12
Timestamp,
13
date_range,
14
- to_datetime,
15
)
16
import pandas._testing as tm
17
from pandas.tests.copy_view.util import get_array
@@ -242,7 +241,13 @@ def test_convert_dtypes(using_infer_string):
242
241
def test_convert_dtypes_pyarrow_timezone():
243
# GH 60237
244
expected = Series(
245
- to_datetime(range(5), utc=True, unit="h"),
+ [
+ "1970-01-01 00:00:00+00:00",
246
+ "1970-01-01 01:00:00+00:00",
247
+ "1970-01-01 02:00:00+00:00",
248
+ "1970-01-01 03:00:00+00:00",
249
+ "1970-01-01 04:00:00+00:00",
250
+ ],
251
dtype="timestamp[ns, tz=UTC][pyarrow]",
252
253
result = expected.convert_dtypes(dtype_backend="pyarrow")
0 commit comments