Series Summaries Options
Base configuration options shared for Series summary.
Subclasses may extend this dataclass with additional parameters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value_counts
|
bool or None
|
|
None
|
d_func
|
dict
|
Custom metric functions grouped by metric type. |
D_FUNC
|
skip_na
|
bool or None
|
Skip NA statistics. |
False
|
round_perc
|
int
|
Percentage rounding decimals. |
1
|
round_perc
|
int
|
Percentage rounding decimals. |
1
|
round_desc
|
int
|
Descriptive rounding decimals. |
2
|
_tot_shape
|
int
|
External total used for percentage calculations. |
None
|
label_type
|
str
|
Name of MultiIndex level containing summary type information |
'dtype'
|
label_type_all
|
str
|
Name of MultiIndex type value for numeric+non-numeric metric |
'all'
|
label_type_not_num
|
str
|
Name of MultiIndex type value for numeric metric |
'Not Numeric'
|
label_type_num
|
str
|
Name of MultiIndex type value for non-numeric metric |
'Numeric'
|
label_mode
|
str
|
Name of MultiIndex level containing summary mode information |
'Mode'
|
label_mode_desc
|
str
|
Name of MultiIndex mode value for pandas |
'Describe'
|
label_mode_value_count
|
str
|
Name of MultiIndex mode value for pandas |
'Value Count'
|
label_mode_custom
|
str
|
Name of MultiIndex mode value for pandas custom (d_func) metric |
'Custom'
|
label_metric
|
str
|
Name of MultiIndex level containing summary metric information |
'Metric'
|
label_metric_count
|
str
|
Name of MultiIndex metric value for count metric |
'Num. elements'
|
label_metric_nas
|
str
|
Name of MultiIndex metric value for NAs metric |
'NAs'
|
label_metric_type
|
str
|
Name of MultiIndex level containing summary type of metric information |
'Type'
|
label_metric_type_count
|
str
|
Name of MultiIndex type of metric value for count metric |
'count'
|
label_metric_type_percentile
|
str
|
Name of MultiIndex type of metric value for percentile metric |
'percentile'
|
label_metric_type_perc
|
str
|
Name of MultiIndex type of metric value for percentage metric |
'%'
|
describe_kwargs
|
Dict
|
Any keyword argument accepted by pandas |
dict()
|
Source code in metaframe/src/utils/opts_dataclass/summary.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |