From a9e48c6fd3147f1782554bca6dc9af77ddf38cfd Mon Sep 17 00:00:00 2001 From: prabhav5112 Date: Fri, 30 Sep 2022 18:52:29 +0530 Subject: [PATCH] Bug fix plotly/documentation #1693 --- doc/python/custom-buttons.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/python/custom-buttons.md b/doc/python/custom-buttons.md index 014dc8ad2e4..028bc3a0725 100644 --- a/doc/python/custom-buttons.md +++ b/doc/python/custom-buttons.md @@ -359,6 +359,7 @@ import pandas as pd df = pd.read_csv( "https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv") df.columns = [col.replace("AAPL.", "") for col in df.columns] +df = df.set_index('Date') # Initialize figure fig = go.Figure()