BUG: unstack fails in PeriodIndex by sinhrks · Pull Request #7041 · pandas-dev/pandas (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation12 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

sinhrks

Closes #4342.

Also changed Categorical and PeriodIndex.factorize to make index sorted like other indexes do.

jreback

@@ -458,6 +458,7 @@ Bug Fixes
- Bug in timeseries-with-frequency plot cursor display (:issue:`5453`)
- Bug surfaced in groupby.plot when using a ``Float64Index`` (:issue:`7025`)
- Stopped tests from failing if options data isn't able to be downloaded from Yahoo (:issue:`7034`)
- Bug in ``unsatck`` raises ``ValueError`` when ``MultiIndex`` contains ``PeriodIndex`` (:issue:`4342`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unstack

@jreback

did anything change because of the sorting change?

@jreback

@sinhrks fyi, in general ping me when you think something is ready for merging (esp if its marked for 0.14). try to make green! if its not, ok to ping as well and will take a look

@sinhrks

Sorting change only affects to Categorical creation with PeriodIndex. Because:

@jreback

ok; looking at this code, I think you can define factorize for Index/Series in core/base.py,

then just do the test hasattr(labels,'factorize')

@jreback

ok, i think you can rebase this and then good?

@jreback

@sinhrks

Should be rebased, I will finish it soon.

@sinhrks

@sinhrks

jreback added a commit that referenced this pull request

May 10, 2014

@jreback

BUG: unstack fails in PeriodIndex

@jreback

Labels

Period

Period data type

Reshaping

Concat, Merge/Join, Stack/Unstack, Explode

2 participants

@sinhrks @jreback