-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
In read_excel parse_date=False is not working #29217
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
Can you maybe share the file (or something we can reproduce this with) that causes this problem? The
So, this can only be used for columns that have strings that might be interpreted as dates, and not for column that are already the date type in excel itself. |
Input sample you can use combination of date and simple string
|
I was looking for the actual binary file 'filename.xlsx'. |
My guess is that the Excel file is defining the data format of those cells as date: pandas/pandas/io/excel/_xlrd.py Lines 59 to 83 in bc020f6
For those types of cells, we are rendering those as date because Excel told us to do so. The parameter |
@gfyoung Yes the problem is with the microsoft excel, It is detecting the cell type automatically to date, I had to convert it to Text to avoid the auto parsing of cell to date type. Can we include this Info in the doc so that new users can get the answer without raising issue .. |
@ajphukan : You are more than welcome to contribute something! |
I want to help, how do i start by adding this info to the doc? Any help |
Code Sample, a copy-pastable example if possible
Problem description
In read_excel parse_date default value is False , but still it is parsing the date.
Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
Note: Many problems can be resolved by simply upgrading
pandas
to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check ifmaster
addresses this issue, but that is not necessary.For documentation-related issues, you can check the latest versions of the docs on
master
here:https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : None
python : 3.6.4.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 0.25.2
numpy : 1.14.4
pytz : 2019.3
dateutil : 2.8.0
pip : 19.3.1
setuptools : 41.4.0
Cython : None
pytest : 5.2.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.10.3
IPython : 7.8.0
pandas_datareader: None
bs4 : 4.8.1
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : None
sqlalchemy : 1.0.8
tables : None
xarray : None
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
The text was updated successfully, but these errors were encountered: