-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Strange error message when summing datetime64 and datetime.time column #10329
Comments
xref to #8698 |
@jreback it is indeed somewhat related in the sense that I should have converted it to a timedelta, but first didn't and got this error. |
well I think I tried to make this happen automatically and ran into a road-block, but don't remember exactly what the problem (aside from the pretty useless tz attribute in |
well, this discussion is more related to #8343 then, I think. |
@jreback What I wanted to report here: not that this operation should work, but that the error message should be more clear, something in the sense of |
@jorisvandenbossche ok, I suppose it could raise the default message |
yes, that is indeed what you get with other object typed columns |
I think since But if someone actually did this of course |
Do you mean it should return a value? I think it should always error, as a datetime and time object are (and should be) incompatible types to add (in plain python this gives: |
oh, I get it now. a |
yes, indeed. But in the sense that, as a user you probably can better use |
my point is the |
I agree that datetime.time in Python is silly, but we still need to treat it as a different class. It would be a decent idea to add an easy API for converting to time deltas. |
Would this easy API be simply allowing to provide it to (this is how I interpreted #8698, but maybe that was a wrong interpretation) |
Yes, that would work for me. On Thu, Jun 11, 2015 at 9:23 AM, Joris Van den Bossche
|
yeh I think conversions could be done both in |
Looks like this raises a more sensible error now. Could use a test
|
You get
TypeError: Argument 'values' has incorrect type (expected numpy.ndarray, got Series)
:The text was updated successfully, but these errors were encountered: