-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pandas not preserving date type on reading back parquet #20089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
you could open an issue on the arrow tracker, but likely the answer is going to be the same. |
I believe the whole point of this issue is about providing a first-class support of |
we have #32473 for adding a date type |
Hello,
Should I re-open a new ticket or can this ticket be re-opened? |
@yohplala we're struggling with the same issue here, is this still open/resolved? |
Hi @anderl80 , I have switched to directly use fastparquet instead of pandas to write down parquet files (fastparquet offers additional options in terms of appending modes). following your question, I had a look at pyarrow doc, and they state that now here: So maybe the bug is naturally soved, I cannot say. |
Code Sample, a copy-pastable example if possible
However if I do:
I get:
Problem description
Pandas not preserving the date type on reading back parquet.
When pandas read a dataframe that originally had a
date
type column it converts it toTimestamp
type. It is clear that it is a pandas problem since reading it using pyarrow, we get the original correct typeExpected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Linux
OS-release: 4.13.0-36-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: pt_BR.UTF-8
pandas: 0.22.0
pytest: None
pip: 9.0.1
setuptools: 38.4.0
Cython: None
numpy: 1.14.0
scipy: 1.0.0
pyarrow: 0.8.0
xarray: None
IPython: 6.2.1
sphinx: None
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.1.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: 0.1.2
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: