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

Function test_to_pandas_timezone

python/pyarrow/tests/test_array.py:4090–4097  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4088
4089@pytest.mark.pandas
4090def test_to_pandas_timezone():
4091 # https://issues.apache.org/jira/browse/ARROW-6652
4092 arr = pa.array([1, 2, 3], type=pa.timestamp('s', tz='Europe/Brussels'))
4093 s = arr.to_pandas()
4094 assert s.dt.tz is not None
4095 arr = pa.chunked_array([arr])
4096 s = arr.to_pandas()
4097 assert s.dt.tz is not None
4098
4099
4100@pytest.mark.pandas

Callers

nothing calls this directly

Calls 2

chunked_arrayMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected