You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There always has an option called column_name or column_names.
It's used to select the columns of df.
The type could be a single value like Hashable and list values likes Iterable[Hashable].
And this idea is to support callback type.
Brief Description
There always has an option called
column_name
orcolumn_names
.It's used to select the columns of
df
.The type could be a single value like
Hashable
and list values likesIterable[Hashable]
.And this idea is to support callback type.
Originally posted by @ericmjl in #1112 (comment)
Example API
An implicit style and also a trick to select columns.
df.columns
lambda df: df.columns[:3]
['a', 'b', 'c']
lambda df: [i for i in df.columns if instance(i, str)]
['a', 'b', 'c']
The text was updated successfully, but these errors were encountered: