Column Profile Compilers

For generating a report.

class dataprofiler.profilers.column_profile_compilers.BaseCompiler(df_series=None, options=None, pool=None)

Bases: object

Abstract class for generating a report.

Initialize BaseCompiler object.

abstract report(remove_disabled_flag=False)

Return report.

Parameters

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

property profile

Return the profile of the column.

diff(other, options=None)

Find the difference between 2 compilers and returns the report.

Parameters

other (BaseCompiler) – profile compiler finding the difference with this one.

Returns

difference of the profiles

Return type

dict

update_profile(df_series, pool=None)

Update the profiles from the data frames.

Parameters
  • df_series (pandas.core.series.Series) – a given column, assume df_series in str

  • pool (multiprocessing.Pool) – pool to utilized for multiprocessing

Returns

Self

Return type

BaseCompiler

class dataprofiler.profilers.column_profile_compilers.ColumnPrimitiveTypeProfileCompiler(df_series=None, options=None, pool=None)

Bases: dataprofiler.profilers.column_profile_compilers.BaseCompiler

For generating ordered column profile reports.

Initialize BaseCompiler object.

report(remove_disabled_flag=False)

Return report.

Parameters

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

property profile

Return the profile of the column.

property selected_data_type

Find the selected data_type in a primitive compiler.

Returns

name of the selected data type

Return type

str

diff(other, options=None)

Find the difference between 2 compilers and returns the report.

Parameters

other (ColumnPrimitiveTypeProfileCompiler) – profile compiler finding the difference with this one.

Returns

difference of the profiles

Return type

dict

update_profile(df_series, pool=None)

Update the profiles from the data frames.

Parameters
  • df_series (pandas.core.series.Series) – a given column, assume df_series in str

  • pool (multiprocessing.Pool) – pool to utilized for multiprocessing

Returns

Self

Return type

BaseCompiler

class dataprofiler.profilers.column_profile_compilers.ColumnStatsProfileCompiler(df_series=None, options=None, pool=None)

Bases: dataprofiler.profilers.column_profile_compilers.BaseCompiler

For generating OrderColumn and CategoricalColumn reports.

Initialize BaseCompiler object.

report(remove_disabled_flag=False)

Return report.

Parameters

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

diff(other, options=None)

Find the difference between 2 compilers and returns the report.

Parameters

other (ColumnStatsProfileCompiler) – profile compiler finding the difference with this one.

Returns

difference of the profiles

Return type

dict

property profile

Return the profile of the column.

update_profile(df_series, pool=None)

Update the profiles from the data frames.

Parameters
  • df_series (pandas.core.series.Series) – a given column, assume df_series in str

  • pool (multiprocessing.Pool) – pool to utilized for multiprocessing

Returns

Self

Return type

BaseCompiler

class dataprofiler.profilers.column_profile_compilers.ColumnDataLabelerCompiler(df_series=None, options=None, pool=None)

Bases: dataprofiler.profilers.column_profile_compilers.BaseCompiler

For generating DataLabelerColumn report.

Initialize BaseCompiler object.

report(remove_disabled_flag=False)

Return report.

Parameters

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

diff(other, options=None)

Find the difference between 2 compilers and return the report.

Parameters
  • other (ColumnDataLabelerCompiler) – profile compiler finding the difference with this one.

  • options (dict) – options to change results of the difference

Returns

difference of the profiles

Return type

dict

property profile

Return the profile of the column.

update_profile(df_series, pool=None)

Update the profiles from the data frames.

Parameters
  • df_series (pandas.core.series.Series) – a given column, assume df_series in str

  • pool (multiprocessing.Pool) – pool to utilized for multiprocessing

Returns

Self

Return type

BaseCompiler

class dataprofiler.profilers.column_profile_compilers.UnstructuredCompiler(df_series=None, options=None, pool=None)

Bases: dataprofiler.profilers.column_profile_compilers.BaseCompiler

For generating TextProfiler and UnstructuredLabelerProfile reports.

Initialize BaseCompiler object.

report(remove_disabled_flag=False)

Report profile attrs of class and potentially pop val from self.profile.

diff(other, options=None)

Find the difference between 2 compilers and return the report.

Parameters
  • other (UnstructuredCompiler) – profile compiler finding the difference with this one.

  • options (dict) – options to impact the results of the diff

Returns

difference of the profiles

Return type

dict

property profile

Return the profile of the column.

update_profile(df_series, pool=None)

Update the profiles from the data frames.

Parameters
  • df_series (pandas.core.series.Series) – a given column, assume df_series in str

  • pool (multiprocessing.Pool) – pool to utilized for multiprocessing

Returns

Self

Return type

BaseCompiler