Categorical Column Profile

class dataprofiler.profilers.categorical_column_profile.CategoricalColumn(name, options=None)

Bases: dataprofiler.profilers.base_column_profilers.BaseColumnProfiler

Categorical column profile subclass of BaseColumnProfiler. Represents a column int the dataset which is a categorical column.

Initialization of column base properties and itself.

Parameters

name (String) – Name of data

type = 'category'
property profile

Property for profile. Returns the profile of the column.

property categories

Property for categories.

property unique_ratio

Property for unique_ratio. Returns ratio of unique categories to sample_size

property is_match

Property for is_match. Returns true if column is categorical.

update(df_series)

Updates the column profile.

Parameters

df_series (pandas.core.series.Series) – Data to profile.

Returns

None

col_type = None