darshan-hpc / darshan

Darshan I/O characterization tool
Other
56 stars 27 forks source link

FutureWarning: Series.__getitem__ treating keys as positions is deprecated. #963

Closed roblatham00 closed 11 months ago

roblatham00 commented 11 months ago

not entirely sure where this is coming from, but generated darshan reports on ALCF polaris with these python modules:

% pip list
Package             Version
------------------- ------------
cffi                1.16.0
contourpy           1.1.1
cycler              0.12.1
darshan             3.4.4.0
fonttools           4.43.1
h5py                3.10.0
humanize            4.8.0
importlib-resources 6.1.0
kiwisolver          1.4.5
Mako                1.2.4
MarkupSafe          2.1.3
matplotlib          3.8.0
mpi4py              3.1.5
numpy               1.26.1
packaging           23.2
pandas              2.1.2
Pillow              10.1.0
pip                 23.2.1
pycparser           2.21
pyparsing           3.1.1
python-dateutil     2.8.2
pytz                2023.3.post1
seaborn             0.13.0
setuptools          58.1.0
six                 1.16.0
tzdata              2023.3
zipp                3.17.0 

and got these warnings (truncating the path)

data_access_by_filesystem.py:680: 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]`
  file_rd_series[sort_inds],
data_access_by_filesystem.py:681: 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]`
  file_wr_series[sort_inds],
data_access_by_filesystem.py:682: 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]`
  bytes_rd_series[sort_inds],
data_access_by_filesystem.py:683: 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]`
  bytes_wr_series[sort_inds],

just warnings.. the plots look as expected

shanedsnyder commented 11 months ago

Looks like @tylerjereddy ran into this as well, and fixed as part of this PR to add support for Python 3.12: #959

Just need to get that merged

shanedsnyder commented 11 months ago

Closing this as #959 is now merged into main. These warnings should go away on our next release.