Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
roblatham00 opened this issue Oct 27, 2023 · 2 comments

Comments

@roblatham00
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants