Profile.frequency

frequency

frequency(name: str) -> ReportItem

Return category counts, including for discrete numeric variables.

High-cardinality numeric variables are refused rather than grouped without bounds. Prefer histogram() for continuous measurements.

Example

p = ps.profile(df)
report.add(p.frequency('enctype'))

Research note

Frequency tables have a high-cardinality safeguard. A numeric identifier is not necessarily a useful categorical variable.

← Profiling API