brand_sums(all_revenue)
A normalized magnitude version of brand sums.
Source code in wt_ml/dataset/generate_hdf5/__init__.py
64 65 66 67 68 |
|
sales_instability(all_revenue)
Calculate the sales instability metric for each column in the input data.
:param sales: A pandas DataFrame containing all revenue data. :return: A pandas Series or NumPy array containing the sales instability metric for each column. Series index [wholesaler, brand, product]
Source code in wt_ml/dataset/generate_hdf5/__init__.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|