I have dates
list with missing dates like
['2018-06-01', '2018-06-02', '2018-06-03', '2018-06-06']
And corresponding values
list like
[3,5,3,7]
How can I add missing dates in sorted list and add 0
for corresponding index in values
Above values I parsed from below data
data = defaultdict(Counter)
defaultdict(<class 'collections.Counter'>, {'2018-06-01': Counter({u'Values': 1}), '2018-06-03': Counter({u'Values': 2})}
If I can add missing dates in defaultdict that will work as well.
It's not duplicate I don't just want to create dates I have to updates corresponding values list.