starts_with

starts_with(match, ignore_case=True)

Select columns whose names start with a prefix.

The Python form of tidyselect’s starts_with(): pass it wherever an ezrsurvey helper takes several columns. Matching ignores case by default, as in R.

Parameters

Name Type Description Default
match str or list of str One prefix, 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

ends_with, contains, everything, all_of

Examples

>>> diagnose(podracing_survey, starts_with("ratings_"))