Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
0.9.0
-
None
-
None
Description
(Note: Edited after realizing this is unrelated to parquet )
While streaming a dataframe -> pyarrow -> back to dataframe I noticed that my date column had its type information switch from "object" ( which would have loaded it as a date I would imagine ) to "datetime":
from datetime import date import pandas as pd import pyarrow as pa df = pd.DataFrame( { 'a' : [ date( 2017, 1, 1), date( 2017, 2, 1 ) ] }) table = pa.Table.from_pandas( df ) df2 = table.to_pandas() >>> df['a'].dtype dtype('O') >>> df2['a'].dtype dtype('<M8[ns]')
Attachments
Issue Links
- duplicates
-
ARROW-2646 [C++/Python] Pandas roundtrip for date objects
- Resolved