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

fancy indexing with dupe columns yields unexpected ordering #3455

Closed
ghost opened this issue Apr 25, 2013 · 3 comments · Fixed by #3459
Closed

fancy indexing with dupe columns yields unexpected ordering #3455

ghost opened this issue Apr 25, 2013 · 3 comments · Fixed by #3459
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Apr 25, 2013


In [16]: from pandas.util.testing import makeCustomDataframe as mkdf
    ...: df= mkdf(10, 3)
    ...: df.columns = ['a','a','b']
    ...: cols = ['b','a']
    ...: df[['b','a']].columns
Out[16]: Index([a, a, b], dtype=object)

expected to see

['b','a','a']

Once fixed, can relax format.py:CSVFormatter raising NotImplementedError()
on cols selection with dupe columns, for the new engine only. see #3457 .

edit: #3509 removed that limitation from CSVFormatter

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

I see where this is broken....

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

looks like it always returns in the index in the original order......

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

closed by #3459

@jreback jreback closed this as completed Apr 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant