-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: allow insertion/deletion of columns in non-unique column DataFrames #3683
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
Conversation
"A bit non trivial" lol Is this still WIP? I think the example from above is still present (if I my HEAD is on this correctly)... |
this works on this branch (not on dev) |
Weird, #3687 is still not working for me on the branch, tip eb3720f (maybe I'm doing it wrong!). |
something funny going on....works in this case:
|
was an oversite in the constructor, was constructing the _ref_locs when mixed type of in the example I used...., but not in a single-dtype array....will be updated soon |
@wesm a bit more complicated that I like |
CLN: finished duplicate item insert/delete - whoosh! (GH3679) BUG: insert almost working BUG: fixed insertion of dup columns! ENH: added allow_duplicates kw to DataFrame.insert to indicate that inserting of a duplicate column should be allowed (default is False)
…darray ENH: non-unique assignment now works TST: more tests BUG: handle multi-level columns correctly (original method) CLN/BUG: raise exception if block ref_locs are not set when _set_ref_locs
ENH: extend index.reindex to handle non_unique indicies (rather than raising) TST: more tests/optimizations for dup_columns
BUG: allow insertion/deletion of columns in non-unique column DataFrames
closes #3679, #3687
Here's example of various operations
This is the current default behavior now
Don't try this at home