From 41cb9548638a0c61e47014f02cbc30887c58e8bc Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Wed, 18 Dec 2019 12:12:08 +0000 Subject: [PATCH] :alien: upgrade code so it no longer uses deprecated pandas method ix --- packages/python/plotly/plotly/figure_factory/_gantt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/figure_factory/_gantt.py b/packages/python/plotly/plotly/figure_factory/_gantt.py index 3d3f8f5cdd5..dfc5e4a2a32 100644 --- a/packages/python/plotly/plotly/figure_factory/_gantt.py +++ b/packages/python/plotly/plotly/figure_factory/_gantt.py @@ -46,7 +46,7 @@ def validate_gantt(df): for index in range(num_of_rows): task_dict = {} for key in df: - task_dict[key] = df.ix[index][key] + task_dict[key] = df.iloc[index][key] chart.append(task_dict) return chart