ends_with
ends_with(match, ignore_case=True)Select columns whose names end with a suffix.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| match | str or list of str | One suffix, or several. | required |
| ignore_case | bool | Ignore upper and lower case when matching. Default True. | True |
Returns
| Name | Type | Description |
|---|---|---|
| dict | A selection that the helpers resolve against their data. |
See Also
starts_with, contains
Examples
>>> select_suffix(podracing_survey, "_com")
>>> calc_percentage_batch(podracing_survey, ends_with("_gender"))