MCPcopy Create free account
hub / github.com/apache/arrow / test_array_conversion_for_datetime

Function test_array_conversion_for_datetime

python/pyarrow/tests/test_pandas.py:5262–5271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5260
5261
5262def test_array_conversion_for_datetime():
5263 # GH-35235
5264 # pandas implemented __from_arrow__ for DatetimeTZDtype,
5265 # but we choose to do the conversion in Arrow instead.
5266 # https://github.com/pandas-dev/pandas/pull/52201
5267 series = pd.Series(pd.date_range("2012", periods=2, tz="Europe/Brussels"))
5268 arr = pa.array(series)
5269
5270 result = arr.to_pandas()
5271 tm.assert_series_equal(result, series)
5272
5273
5274@pytest.mark.large_memory

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected