Skip to content

BUG: MultiIndex.get_level_values created from Categorical raises AttributeError #10465

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

Closed
wants to merge 1 commit into from

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Jun 28, 2015

Closes #10460.

xref: #10464.

@sinhrks sinhrks added Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex Categorical Categorical Data Type labels Jun 28, 2015
@sinhrks sinhrks added this to the 0.17.0 milestone Jun 28, 2015
@@ -4238,7 +4238,7 @@ def get_level_values(self, level):
num = self._get_level_number(level)
unique = self.levels[num] # .values
labels = self.labels[num]
filled = com.take_1d(unique.values, labels, fill_value=unique._na_value)
filled = com.take_1d(unique.get_values(), labels, fill_value=unique._na_value)
Copy link
Contributor

Choose a reason for hiding this comment

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

if you fix like i suggest in #10464 I think this will be fixed for free

@sinhrks
Copy link
Member Author

sinhrks commented Jun 28, 2015

OK, try working on #10464.

@sinhrks sinhrks closed this Jun 28, 2015
@sinhrks sinhrks deleted the categorical_values branch June 28, 2015 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants