Order Column Profile

Index profile analysis for individual col within structured profiling.

class dataprofiler.profilers.order_column_profile.Comparable(*args, **kwargs)

Bases: Protocol

Protocol for ensuring comparable types, in this case both floats or strings.

class dataprofiler.profilers.order_column_profile.OrderColumn(name: str | None, options: OrderOptions = None)

Bases: dataprofiler.profilers.base_column_profilers.BaseColumnProfiler[OrderColumn]

Index column profile subclass of BaseColumnProfiler.

Represents a column in the dataset which is an index column.

Initialize column base properties and self.

Parameters
  • name (String) – Name of the data

  • options (OrderOptions) – Options for the Order column

type = 'order'
report(remove_disabled_flag: bool = False) dict

Private abstract method for returning report.

Parameters

remove_disabled_flag (boolean) – flag to determine if disabled options should be excluded in the report.

classmethod load_from_dict(data, config: dict | None = None)

Parse attribute from json dictionary into self.

Parameters
  • data (dict[string, Any]) – dictionary with attributes and values.

  • config (Dict | None) – options for loading column profiler params from dictionary

Returns

Profiler with attributes populated.

Return type

CategoricalColumn

property profile: dict

Property for profile. Returns the profile of the column.

Returns

diff(other_profile: dataprofiler.profilers.order_column_profile.OrderColumn, options: Optional[dict] = None) dict

Generate the differences between the orders of two OrderColumns.

Returns

Dict containing the differences between orders in their

appropriate output formats :rtype: dict

update(df_series: pandas.core.series.Series) dataprofiler.profilers.order_column_profile.OrderColumn

Update the column profile.

Parameters

df_series (pandas.core.series.Series) – df series

Returns

updated OrderColumn

Return type

OrderColumn

col_type = None
name: str | None
sample_size: int
metadata: dict
times: dict
thread_safe: bool