Sign in
Log inSign up

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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct