My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How can I add two numbers to each and every row of a column of a Python dataframe?

Bikram Baruah's photo
Bikram Baruah
·Feb 11, 2017

I am analyzing a pollution data set. However, the date of each record is in the form 01-01-15, 02-01-15 , which is why I need to format it to 2015 for each row so that I can convert it to datetime . What should I use to do so?