Skip to content

BUG: to_csv handles cols= reordering,dupe cols GH3454 #3458

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

Merged
3 commits merged into from Apr 25, 2013
Merged

BUG: to_csv handles cols= reordering,dupe cols GH3454 #3458

3 commits merged into from Apr 25, 2013

Conversation

ghost
Copy link

@ghost ghost commented Apr 25, 2013

#3454, #3457, #3455

@jreback, comments?

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

so this is a compat with the original to_csv engine?

@ghost
Copy link
Author

ghost commented Apr 25, 2013

Actually it's 3 bugs rolled into one.

for unique col reordering, it's compat yeah. The original test suite for to_csv didn't cover this
case and so we didn't see it.

for dupe columns, engine='python' is totally broken, so trying that now raises. #3457
getitem is broken for dupe columns, #3455, so for now, the new engine will write out
a full frame with dupe cols unless you also try to select a subset in which case it'll raise.

what a PITA.

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

let's wait a bit, I think can these pretty easily (when they are in the same block, that case is still tricky)

@ghost
Copy link
Author

ghost commented Apr 25, 2013

s***, here we go with the RELEASE.rst conflicts again.

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

yep....I see them evertime I add at the end, if I add in the middle its ok.....?? maybe we should NOT add at the end and just reorder every once in a while?

@ghost
Copy link
Author

ghost commented Apr 25, 2013

yeah, insert at a random location, p(collision)-->0 n as we get more tickets in.
same for GH issue links.

@jreback
Copy link
Contributor

jreback commented Apr 25, 2013

#3459 merged in

ghost pushed a commit that referenced this pull request Apr 25, 2013
BUG: to_csv handles cols= reordering,dupe cols GH3454
@ghost ghost merged commit 0bd5e77 into pandas-dev:master Apr 25, 2013
@ghost ghost deleted the GH3454 branch April 25, 2013 16:23
@jreback
Copy link
Contributor

jreback commented May 2, 2013

@y-p dup column changes all merged in.....pls revisit any issues that you think need

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant