2. Statistics¶
2.1. Statistics¶
- resourcegeo.statistics.table_statistics.stats_contvar_cat(dat, vars, weight_col=None, catcol=None, cats=None, tmin=0, flname=None)¶
Bulk statistics for continuous variables by variable and category. Optional weighting. Hardcoded for one weight column for all variables.
- Parameters:
dat (pd.DataFrame) – df with variable
vars (str or list) – variable(s) to consider
weight_col (str) – weighted column in dat
tmin (str) – Minimum value to consider (min included)
catcol (str) – Categorical column
cats (list) – Filter data by these categories
flname (str) – Path to save csv