You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [2]: import pyarrow as pa; from datetime import datetime
In [4]: pa.array([datetime(2023, 1, 1)], type=pa.timestamp("ns")).to_pylist()
Out[4]: [Timestamp('2023-01-01 00:00:00')]
From the docs, I assumed Convert to a list of native Python objects. means I should always expected a datetime.datetimeobject, but since I suppose it cannot handle nanosecond components this method returns a pandas.Timestamp when the unit is "ns"