I have a DataFrame with a column of months and a column of years:
A = [2, 3, 4]
B = [2013, 2014, 2015]
df = pd.DataFrame({
'A': A,
'B': B,
})
I want to add the end date of each month and generate a new column like this:
A = [2, 3, 4]
B = [2013, 2014, 2015]
C = [2013-2-28, 2014-3-31, 2015-4-30]
df = pd.DataFrame({
'A': A,
'B': B,
'assessDate': C,
})