From 3ae4010bb29460408a27f0436fcfc208dd18b417 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Thu, 22 Aug 2019 20:12:35 -0700 Subject: [PATCH] Replace use of deprecated Pandas method. --- reports/graphs/sleep_pattern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/graphs/sleep_pattern.py b/reports/graphs/sleep_pattern.py index 3c00c0bd..78f3c6ea 100644 --- a/reports/graphs/sleep_pattern.py +++ b/reports/graphs/sleep_pattern.py @@ -110,7 +110,7 @@ def sleep_pattern(instances): traces.append(go.Bar( x=dates, y=row, - text=text_df.ix[index], + text=text_df.iloc[index], hoverinfo='text', marker={'color': color}, showlegend=False,