I've created a dict of dicts structured in such a way that the key is the department ('ABC') then the date (01.08) is the key and values are { product name (A), Units (0), Revenue (0)}. This structure continues for several departments. See dict of dict printout below. 'ABC': 01.08 \ A. Units 0 Revenue 0 B. Units 0 Revenue 0 C. Units 0 Revenue 0 D. Units 0 Revenue 0 Additionally, I've created a dataframe using groupby and an aggregation function...
Originally asked by OAK on Stack Exchange (stackoverflow) (CC BY-SA 3.0).