We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding two DataFrames with a DateRange index (with BusinessMonthEnd offset) yields a DataFrame with a simple 'Index'.
The text was updated successfully, but these errors were encountered:
from pandas import DateRange, DataFrame from pandas.core.datetools import BMonthEnd a = DataFrame({}, index=DateRange('2011-01-01', '2011-11-30', offset=BMonthEnd())) b = DataFrame({}, index=DateRange('2011-01-01', '2011-11-29', offset=BMonthEnd())) print a+b
Yields: Empty DataFrame Columns: Index([], dtype=object) Index: Index([2011-01-31 00:00:00, 2011-02-28 00:00:00, 2011-03-31 00:00:00, 2011-04-29 00:00:00, 2011-05-31 00:00:00, 2011-06-30 00:00:00, 2011-07-29 00:00:00, 2011-08-31 00:00:00, 2011-09-30 00:00:00, 2011-10-31 00:00:00, 2011-11-30 00:00:00], dtype=object)
In Pandas 0.4.0, yields: Empty DataFrame class 'pandas.core.daterange.DateRange' offset: 1 BusinessMonthEnd, tzinfo: None [2011-01-31 00:00:00, ..., 2011-11-30 00:00:00] length: 11
Note, this doesn't just happen with empty DataFrames - I just did that for a simple repro.
Sorry, something went wrong.
BUG: DateRange / subclass handling in Index.join. Handle name field i…
2856c64
…n Index.union, GH #500, #501
Fixed in the above commit
No branches or pull requests
Adding two DataFrames with a DateRange index (with BusinessMonthEnd offset) yields a DataFrame with a simple 'Index'.
The text was updated successfully, but these errors were encountered: