Skip to content
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

DateRange logic error with DateOffset(months=3) #770

Closed
wesm opened this issue Feb 9, 2012 · 0 comments

Comments

@wesm
Copy link
Member

commented Feb 9, 2012

This yields incorrect results:

DateRange("2011-1-1","2012-1-31",offset=DateOffset(months=3))

@wesm wesm closed this in d207a25 Feb 9, 2012

yarikoptic added a commit to neurodebian/pandas that referenced this issue Feb 10, 2012
Merge commit 'v0.7.0rc1-205-g8610be5' into debian
* commit 'v0.7.0rc1-205-g8610be5': (22 commits)
  BUG: open file in Python 3 with given encoding
  BUG: actually pass encoding to UnicodeWriter
  BUG: use UnicodeWriter on Python 2.x
  TST: fix vbench per Series constructor api change
  TST: fix numerical stability issue present on certain platforms
  DOC: readme update
  TST: fix debian / 2.5 test
  BUG: always return True for onOffset for regular DateOffset, close pandas-dev#770
  Fixed regression with Panels caused by NDFrame not checking if it was  DataFrame before assuming it had a 'columns' attribute.
  Tests for 'mixed depth' hierarchical columns. Tests for getting, setting, dropping and popping columns from dataframes which have MultiIndexed columns containing some empty strings at the lower levels, by indexing with only the upper levels. Also modified NDFrame._set_item to use the same shorthand.
  Modifications to column-hierarchical behaviour as per "'Mixed depth' hierarchical column labels'" discussion on pystatsmodels. If column label tuples contain only empty strings at the lower levels, allows the DataFrame to be indexed with only the higher levels. So for example if a column has the hierarchical label ('a','',''), and there are no other columns with 'a' at their top level, then this change allows the column to be pulled out with df['a'], rather than df['a','','']. It also names the resulting series 'a'. The use case for this is when some columns have a deeper hierarchy than others, and you want to treat the shallower columns as if the lower levels of the hierarchy weren't there.
  STY: fit in 80 columns
  Add sheet_names property to ExcelFile, with tests
  Put ExcelWriter in pandas namespace
  TST: test coverage
  TST: test coverage, pep8
  TST: skip test on Python 3
  TST: use BytesIO with encoded text for python3
  DOC: update docs to reflect new PyData home
  STY: pep8
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.