I am new to Python and Django. I need to calculate count values over a range, for dataframe columns and render it as a dictionary object so that I can view it as Django html