all_of

all_of(names)

Select the columns named in a list, all of which must exist.

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

any_of, starts_with

Examples

>>> questions = ["demo_gender", "demo_job"]
>>> calc_percentage_batch(podracing_survey, all_of(questions))