0

The colum data which is year has only year( int64) ex 1961 and not as 1961-01-01 when I try to chage to date formate as

dfda['Founded']= pd.to_datetime(dfda['Founded'])

the output is 1970-01-01 00:00:00.000001961 which is wrong , is there any simple way or should we reformate the column to 1961-01-01

1 Answers1

1

You could try

  str(dfda['Founded']) 
Himanshu
  • 3,830
  • 2
  • 10
  • 29