-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ERR: better error reporting for failing parsing in timedelta/timeseries #10720 #10883
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
Conversation
Why did you close this one? |
Some advice:
|
Ohh i closed the other one because i wanted to rebase. Thanks for the tip On Saturday, 22 August 2015, Joris Van den Bossche [email protected]
Peadar Coyle |
Can you reopen this one instead and close the other one? |
slight update
Ok - so that attempt passed, any got any feedback about whether it's ready to be merged or does it need some more work? |
@@ -923,8 +923,8 @@ def test_to_datetime_with_apply(self): | |||
assert_series_equal(result, expected) | |||
|
|||
td = pd.Series(['May 04', 'Jun 02', ''], index=[1,2,3]) | |||
self.assertRaises(ValueError, lambda : pd.to_datetime(td,format='%b %y', errors='raise')) | |||
self.assertRaises(ValueError, lambda : td.apply(pd.to_datetime, format='%b %y', errors='raise')) | |||
self.assertRaises(ValueError, 'Unknown string format. You can coerce errors to NaT by passing coerce', lambda : pd.to_datetime(td,format='%b %y', errors='raise')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
his is not doing anything
use assertRaisesRegExp
Seems ready |
@springcoil this doesn't do anything. as you didn't actually change any code except for the tests. So this fails. And it still is not rebased on master.
|
Ok will fix that On Saturday, 22 August 2015, Jeff Reback [email protected] wrote:
Peadar Coyle |
I'm going to close this for now. |
closes #10720