I have a pandas column of type date which ranges from 2015-01-01 to 2019-01-01 and I want to create a new column which can normalize my values to single digit
I have a pandas column like below
A
2015-01-01
2015-02-01
2015-03-01
...
...
2019-12-01
and I want a new column like below
A B
2015-01-01 0
2015-02-01 1
2015-03-01 2
2015-05-01. 4
...
2019-11-01. 46
2019-12-01 47