-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
The exceptions from to_datetime(errors='raise') could include information about the exception #16757
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
Labels
Comments
Thanks this would be nice - PR welcome! It may be a little involved as |
3 tasks
take |
1 task
dannyi96
added a commit
to dannyi96/pandas
that referenced
this issue
Aug 6, 2022
dannyi96
added a commit
to dannyi96/pandas
that referenced
this issue
Aug 6, 2022
mroeschke
pushed a commit
that referenced
this issue
Aug 16, 2022
* #16757: improvement of to_datetime errors * The exceptions from to_datetime(errors='raise') could include information about the exception * testcase updates * testcase updates * testcase updates * testcase updates
YYYasin19
pushed a commit
to YYYasin19/pandas
that referenced
this issue
Aug 23, 2022
…#47995) * pandas-dev#16757: improvement of to_datetime errors * The exceptions from to_datetime(errors='raise') could include information about the exception * testcase updates * testcase updates * testcase updates * testcase updates
noatamir
pushed a commit
to noatamir/pandas
that referenced
this issue
Nov 9, 2022
…#47995) * pandas-dev#16757: improvement of to_datetime errors * The exceptions from to_datetime(errors='raise') could include information about the exception * testcase updates * testcase updates * testcase updates * testcase updates
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample, a copy-pastable example if possible
Problem description
This gives:
The information in the to_numeric exception is great. It gives both the unparseable value and the line number that value is on. It'd be helpful for to_datetime to do something similar.
Expected Output
Like with to_numeric, something with information like the following:
Output of
pd.show_versions()
pandas: 0.20.2
pytest: None
pip: 9.0.1
setuptools: 36.0.1
Cython: 0.24.1
numpy: 1.13.0
scipy: 0.18.1
xarray: None
IPython: 6.1.0
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.0.0
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: 3.3.3
bs4: 4.2.1
html5lib: 0.999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: