I am trying to read a csv file which has a Date column. The dates are stored as 8/27/1962, 9/12/1959 and 7/15/1965. When I am using the to_datetime function, the dates being converted to 8/27/2062, 9/12/2059 and 7/15/2065. I am not sure why this is happening. Is it because the year changed or something?
Example:
planets = pd.read_csv('Planets.csv',usecols = ['FirstVisited'])
0 3/29/74
1 8/27/62
2 NaN
3 9/12/59
4 7/15/65
5 12/4/73
6 9/1/79
Name: FirstVisited, dtype: object
pd.to_datetime(planets.FirstVisited)
0 1974-03-29
1 2062-08-27
2 NaT
3 2059-09-12
4 2065-07-15
5 1973-12-04
6 1979-09-01
Check for indexes 1,3 and 4