-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Broadcasting bug with datetime.date index? #2304
Comments
Try By default it's suppose to broadcast over the columns, except in the case of datetimes where it broadcasts over the index by default because it's such a common operation. I think we should expand it to cover dates and times as well, @wesm what do you think? Purist in me says maybe get rid of this hack altogether, but the use case is compelling |
Binary ops between DataFrame of time series and a single time series has been special-cased to go column-by-column. This is some serious legacy stuff from pandas 0.1 and should probably receive a deprecation message in 0.10, to get users to change their code to use one of the explicit functions |
Wow, I didn't know it went THAT far back...not sure how much legacy code is built on that assumption. Probably going to make a certain group of devs at a certain company fairly unhappy. |
Guys,
It seems to be a problem with broadcasting when having a datetime.date index, do you know what may be causing this?
Example:
The columns somehow end up being the union of the inital columns and the index. The above code works OK when using datetime.datetime instead.
Many thanks,
Marius
The text was updated successfully, but these errors were encountered: