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

Enable .drop(...) to work with MultiIndex #101

Closed
wesm opened this issue Aug 15, 2011 · 0 comments
Closed

Enable .drop(...) to work with MultiIndex #101

wesm opened this issue Aug 15, 2011 · 0 comments

Comments

@wesm
Copy link
Member

wesm commented Aug 15, 2011

So we could do like df.drop(['foo']) on this:

            A       B       C        foo
foo  one   -0.659   0.7982  0.2346   bar
     two    2.266  -1.157   0.04916  bar
     three -1.786   2.029   0.4018   bar
bar  one    0.4682  2.42   -1.073    bar
     two   -0.1343 -0.4565 -0.7504   bar
baz  two   -1.387  -0.9626 -0.9333   bar
     three  1.277  -2.475   0.9841   bar
qux  one   -0.633  -0.9965  0.6696   bar
     two    1.359  -0.6917 -0.5386   bar
     three  0.5482  0.2563  0.6752   bar

and get this:

            A       B       C        foo
bar  one    0.4682  2.42   -1.073    bar
     two   -0.1343 -0.4565 -0.7504   bar
baz  two   -1.387  -0.9626 -0.9333   bar
     three  1.277  -2.475   0.9841   bar
qux  one   -0.633  -0.9965  0.6696   bar
     two    1.359  -0.6917 -0.5386   bar
     three  0.5482  0.2563  0.6752   bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant