Open smeisegeier opened 1 week ago
# * only show numerics
for col in df.select_dtypes("number").columns:
_u, _h = get_uniques_header(col)
# * extra care for scipy metrics, these are very vulnarable to nan
print(
f"{_h} min: {round(df[col].min(),3):_} | max: {round(df[col].max(),3):_} | median: {round(df[col].median(),3):_} | mean: {round(df[col].mean(),3):_} | std: {round(df[col].std(),3):_} | cv: {round(df[col].std() / df[col].mean(),3):_} | sum: {round(df[col].sum(),3):_} | skew: {round(stats.skew(df[col].dropna().tolist()),3)} | kurto: {round(stats.kurtosis(df[col].dropna().tolist()),3)}"
)