From 1c592f32a5aebabbcd801778ba92fc52a59e2fb7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 5 Mar 2025 07:23:18 +0100 Subject: [PATCH] Fix error "Calling int on a single element Series is deprecated" --- scripts/plotly_streamlit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/plotly_streamlit.py b/scripts/plotly_streamlit.py index 84bfb93..6e2d1a0 100755 --- a/scripts/plotly_streamlit.py +++ b/scripts/plotly_streamlit.py @@ -377,7 +377,7 @@ if daily is False: species[1:], index=0) - df_counts = int(hourly[hourly.index == specie]['All']) + df_counts = int(hourly.loc[hourly.index == specie, 'All'].iloc[0]) fig = make_subplots(rows=1, cols=1)