dbnd.LogDataRequest

class dbnd.LogDataRequest(include_columns=NOTHING, exclude_columns=NOTHING, include_all_boolean=False, include_all_numeric=False, include_all_string=False)

Used in log_data() for with_stats, with_histograms params.

Example:

@task
def process_customers_data(data):
    log_dataframe("customers_data", data,
                  with_histograms=LogDataRequest(include_all_numeric=True,
                                                   exclude_columns=["name", "phone"]))

Methods

ALL()

Calculate statistics and histograms for all columns.

ALL_BOOLEAN()

Calculate statistics and histograms for all columns of boolean type(s).

ALL_NUMERIC()

Calculate statistics and histograms for all columns of Numeric type(s).

ALL_STRING()

Calculate statistics and histograms for all columns of String type(s).

NONE()

from_user_param(user_param)

To allow flexibility for the user, the parameters can have other types.