Datetime Column Profile

Contains class for profiling datetime column.

class dataprofiler.profilers.datetime_column_profile.DateTimeColumn(name: Optional[str], options: Optional[dataprofiler.profilers.profiler_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: Optional[float]

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: Optional[str]
sample_size: int
metadata: Dict
times: Dict
thread_safe: bool
match_count: int