quandl / quandl-python

MIT License
1.36k stars 336 forks source link

Date format question #149

Closed antonkiselevtdg closed 4 years ago

antonkiselevtdg commented 4 years ago

Hi,

Could you please help me with the following question:

I am trying to change date format from 2018-12-01 to 2020-12-01 00:00:00

I tried the following:

df = quandl.get("BITFINEX/BTCUSD",start_date="01/01/2018")
df = df.reset_index()
df['Date'] =  pd.to_datetime(df['Date'], format = '%d-%b-%y %H:%M:%S')

No result.

Could you please tell me how to do that properly?