Plotly chart not animating properly in Python

I am not sure if your candlestick animation will run as intended, but changing the Date column of your DataFrame from a Timestamp to a string (using the datetime library) should resolve the error.

import datetime as dt

df1['Date'] = df1['Date'].map(lambda x: x.strftime('%m/%d/%Y'))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top