-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
pd.read_excel parse_dates not implemented #12683
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
@AlbertDeFusco Note that if your data are formatted as dates in excel (which will be the majority of the cases), you do not need to specify the |
@jorisvandenbossche is there a way to disable the automatic parsing for columns formatted as dates in excel? In my excel file I have |
|
Hi, I'd like to have support to fix this error. Error I got with parse_dates=['date'] option: File "C:\Program Files\Anaconda3\lib\site-packages\pandas\io\excel.py", line 339, in _parse_excel If i remove parse_dates=['date'] option, i will get a different error below: File "C:\Program Files\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 531, in asarray Excel Source File(Column A): date Code: for i, j in enumerate(dflist): df.sort_values(by = ["date"]) |
@minhouse you can easily fix your problem by doing the date conversion after reading in the excel
That said, this problem should also be solved in pandas 0.20 (the NotImplementedError should be removed). Can you test if this is the case? |
hi, @jorisvandenbossche thank you very much! i was able to fix this problem with your solution. thank you again |
Pandas 0.20.1 was released about 3 weeks ago, so if you update your installation, you should already get it |
Confirmed that Thanks, @jorisvandenbossche! |
Thanks for confirming! (and you have to thank Jeff for getting it in 0.20.1 :-)) |
Thank you for Pandas0.20.1, ive just upgraded and confirmed it is working too.! I love Pandas. Thanks for Jeff. |
Code Sample, a copy-pastable example if possible
Expected Output
output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: None
pip: 8.1.1
setuptools: 20.3
Cython: None
numpy: 1.10.4
scipy: None
statsmodels: None
xarray: None
IPython: 4.1.2
sphinx: None
patsy: None
dateutil: 2.5.0
pytz: 2016.1
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: 0.9.4
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
The text was updated successfully, but these errors were encountered: