I have data that has a "YEAR" column. The second column is "JFK", which is the wind speeds. I need to convert the YEAR column to show arbitrary months and time. But it needs to keep the year.
For instance, I have some data at the year 1972. I want it the column to read:
1972-01-01 00:00:00.000000000
But instead, I am getting:
1970-01-01 00:00:00.000001972
When I type the following:
winds["YEAR"] = pd.to_datetime(winds["YEAR"],errors='ignore')
For some reason, the year is showing up in seconds. Any help will be appreciated.