For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
i have solution first convert str to remove formate and then to_datetime
-
Re: AttributeError: 'int' object has no attribute 'to_pydatetime'
df = pd.DataFrame(data['data'])
df.columns = ['Date','Open','High','Low','Close','Volume']df['Date'] = df['Date'].str.replace('T', ' ').str[:-15]
df['Date'] = pd.to_datetime(df['Date'])