1

I have a column with a month number, which is not listed as a date so there are 2 errors with it that I want to correct:

  1. The count of the column starts from the month in which the count started(March), so in March the number 1 appears' I want to convert the date to the appropriate from.

  2. The counting continues even after the number 12, to the following numbers(13,14,15...) - and of course it is already in another year. How can I change that too?

I was trying to convert the column to date

df['month'] = datetime(df['month'])

But I did not succeed

cannot convert the series to <class 'int'>

FObersteiner
  • 22,500
  • 8
  • 42
  • 72
mor
  • 11
  • 2

0 Answers0