I have a dataframe with tickers, returns, and dates in the format, for example, of "20200101". I'm trying to convert these values to Datetime values. However, when I attempt the following:
fin_data['DATE'] = pd.to_datetime(fin_data['DATE'])
The output is recognizing the date I have (which I'd like to be in YYYY-MM-DD format) as nanoseconds, so the output is something like this:
1970-01-01 00:00:00.020200101
Any help would be greatly appreciated.
2020-01-01, right?pd.read_csv(parse_dates=['DATE']).