Is there a way to subtract from the date a year specified in another column in python?
Is there a way to subtract from the date a year specified in another column in python? Question: Today I have confronted some challenges. This is an example dataset: example = { "a": [‘1/1/1954 14:14′,’2/14/2001 2:00’ , ‘2/15/2002 12:00’], "b": [1936,1996,1960], } #load into df: example = pd.DataFrame(example) print(example) What I was trying to do …