Datetime Column Profile

Contains class for profiling datetime column.

class dataprofiler.profilers.datetime_column_profile.DateTimeColumn(name: str | None, options: DateTimeOptions = None)

Bases: dataprofiler.profilers.base_column_profilers.BaseColumnPrimitiveTypeProfiler

Datetime column profile subclass of BaseColumnProfiler.

Represents a column int the dataset which is a datetime column.

Initialize it and the column base properties.

Parameters
  • name (String) – Name of the data

  • options (DateTimeOptions) – Options for the datetime column

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

Return report.

Private abstract method.

Parameters

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

property profile: dict

Return the profile of the column.

property data_type_ratio: float | None

Calculate the ratio of samples which match this data type.

Returns

ratio of data type

Return type

float

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

Generate differences between max, min, and formats of two DateTime cols.

Returns

Dict containing the differences between max, min, and format in their

appropriate output formats :rtype: dict

update(df_series: pandas.core.series.Series) dataprofiler.profilers.datetime_column_profile.DateTimeColumn

Update the column profile.

Parameters

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

Returns

None

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