any_of
any_of(names)Select the columns named in a list that exist, skipping the ones that do not.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| names | str or list of str | Column names. | required |
Returns
| Name | Type | Description |
|---|---|---|
| dict | A selection that the helpers resolve against their data. |
See Also
all_of
Examples
>>> calc_percentage_batch(podracing_survey, any_of(["demo_gender", "not_a_column"]))