ptype.Column module

class ptype.Column.Column(series, p_t, p_z)

Bases: object

get_an_ratio()

Get proportion of unique values in the column which are considered ‘anomalous’.

get_an_values()

Get a list of the values in the column which are considered ‘anomalous’.

get_na_ratio()

Get proportion of unique values in the column which are considered ‘missing’.

get_na_values()

Get a list of the values in the column which are considered ‘missing’.

get_normal_ratio()

Get proportion of unique values in the column which are considered neither anomalous nor missing.

get_normal_values()

Get list of all values in the column which are considered neither anomalous nor missing.

inferred_type()

Get most likely inferred type for the column.

reclassify(new_t)

Assign a different type to the column, and adjust the interpretation of missing/anomalous values accordingly.

Parameters

new_t – the new type, which must be one of the types known to ptype.

set_p_t_cat(t_hat, p_cat)