fancy indexing with dupe columns yields unexpected ordering #3455

Closed
y-p opened this Issue Apr 25, 2013 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

y-p 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

Contributor

jreback commented Apr 25, 2013

I see where this is broken....

Contributor

jreback commented Apr 25, 2013

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

Contributor

jreback commented Apr 25, 2013

closed by #3459

jreback closed this Apr 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment