From d0fb031a11788d1b3029d866b846bd148eb049be Mon Sep 17 00:00:00 2001 From: Tyler Reddy Date: Tue, 26 Sep 2023 14:08:54 -0600 Subject: [PATCH] MAINT: PR 959 revisions * fix up a `pandas` `FutureWarning`: ``` FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]` ``` --- .../experimental/plots/data_access_by_filesystem.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/darshan-util/pydarshan/darshan/experimental/plots/data_access_by_filesystem.py b/darshan-util/pydarshan/darshan/experimental/plots/data_access_by_filesystem.py index 3e65bad2a..c60c666b1 100644 --- a/darshan-util/pydarshan/darshan/experimental/plots/data_access_by_filesystem.py +++ b/darshan-util/pydarshan/darshan/experimental/plots/data_access_by_filesystem.py @@ -677,10 +677,10 @@ def plot_with_report(report: darshan.DarshanReport, height = num_cats plot_data(fig, - file_rd_series[sort_inds], - file_wr_series[sort_inds], - bytes_rd_series[sort_inds], - bytes_wr_series[sort_inds], + file_rd_series.iloc[sort_inds], + file_wr_series.iloc[sort_inds], + bytes_rd_series.iloc[sort_inds], + bytes_wr_series.iloc[sort_inds], filesystem_roots, num_cats=num_cats)