Weird behavior of .drop(fields) #2829
Labels
bug
Incorrect behavior inside of ibis
internals
Issues or PRs related to ibis's internal APIs
onboarding
Issues that can be addressed by someone less familiar with ibis
ux
User experience related issues
Milestone
I think there is a mismatch between a string and a list of strings
The .drop() method takes a list/sequence/... of fields as argument.
From the examples above, each field can be a string (at least).
So t.drop(["ab", "bc"]) attempts to remove the attributes: "ab" and "bc" and that's fine.
It seems that if I call t.drop("ab"), ibis considers that the 2 attributes are "a" and "b".
But, that's not correct because the elements of a string are characters and not strings, unless we
suppose that field names can also be characters...
Anyway, that's quite confusing.
The text was updated successfully, but these errors were encountered: