-
Notifications
You must be signed in to change notification settings - Fork 21
Typing names
argument in select_columns_by_name
#212
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
Comments
hey - this looks correct to me a and it does: In [20]: pd.api.interchange.from_dataframe(pd.DataFrame({'a': [1,2,3], 'b': [4,5,6], 'c': [7,8,9]}).__d
...: ataframe__().select_columns_by_name('ab'))
Out[20]:
a b
0 1 4
1 2 5
2 3 6 |
Ah okay I forgot about that possibility. Closing then |
seems pretty ambiguous and bug-prone to me. I'd expect that to give me a single column named Unfortunately I'm not sure if there's a way to fix this to make it unambiguous while allowing all non-string sequences. And |
Currently
DataFrame.select_columns_by_name
hasnames
typed asnames: Sequence[str]
.I think the intention here is
Sequence
is a non-scalar container of string labels, butSequence[str]
also matches a purestr
.The text was updated successfully, but these errors were encountered: