Datetime Column Profile¶
Contains class for profiling datetime column.
- class dataprofiler.profilers.datetime_column_profile.DateTimeColumn(name, options=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=False)¶
Return report.
Private abstract method.
- Parameters
remove_disabled_flag (boolean) – flag to determine if disabled options should be excluded in the report.
- property profile¶
Return the profile of the column.
- property data_type_ratio¶
Calculate the ratio of samples which match this data type.
- Returns
ratio of data type
- Return type
float
- diff(other_profile, options=None)¶
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)¶
Update the column profile.
- Parameters
df_series (pandas.core.series.Series) – df series
- Returns
None
- col_type = None¶