8000 Pandas Deprecation Warnings · Issue #287 · rs-station/reciprocalspaceship · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pandas Deprecation Warnings #287

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

Open
kmdalton opened this issue Dec 18, 2024 · 0 comments
Open

Pandas Deprecation Warnings #287

kmdalton opened this issue Dec 18, 2024 · 0 comments

Comments

@kmdalton
Copy link
Member

I'm getting quite a few pandas deprecation warnings during testing. Here is a snippet from the pytest output:

=============================== warnings summary ===============================
../anaconda/envs/rs/lib/python3.11/site-packages/pandas/tests/extension/base/__init__.py:119: 24 warnings
  /Users/kmdalton/opt/anaconda/envs/rs/lib/python3.11/site-packages/pandas/tests/extension/base/__init__.py:119: FutureWarning: BaseBooleanReduceTests is deprecated and will be removed in a future version. Use BaseReduceTests and override `_supports_reduction` instead.
    warnings.warn(

../anaconda/envs/rs/lib/python3.11/site-packages/pandas/tests/extension/base/__init__.py:108: 24 warnings
  /Users/kmdalton/opt/anaconda/envs/rs/lib/python3.11/site-packages/pandas/tests/extension/base/__init__.py:108: FutureWarning: BaseNumericReduceTests is deprecated and will be removed in a future version. Use BaseReduceTests and override `_supports_reduction` instead.
    warnings.warn(

tests/dtypes/test_floats_pandas.py: 286 warnings
tests/dtypes/test_ints_pandas.py: 88 warnings
  /Users/kmdalton/opt/anaconda/envs/rs/lib/python3.11/site-packages/pandas/tests/extension/base/reshaping.py:332: FutureWarning: Mismatched null-like values nan and <NA> found. In a future version, pandas equality-testing functions (e.g. assert_frame_equal) will consider these not-matching and raise.
    tm.assert_frame_equal(result, expected)

tests/dtypes/test_floats_pandas.py: 13 warnings
tests/dtypes/test_ints_pandas.py: 4 warnings
  /Users/kmdalton/opt/anaconda/envs/rs/lib/python3.11/site-packages/pandas/tests/extension/base/getitem.py:276: 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]`
    ser[idx]

tests/dtypes/test_floats_pandas.py: 13 warnings
tests/dtypes/test_ints_pandas.py: 4 warnings
  /Users/kmdalton/opt/anaconda/envs/rs/lib/python3.11/site-packages/pandas/tests/extension/base/setitem.py:227: 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]`
    arr[idx] = arr[0]

tests/io/test_precognition.py::test_read_hkl[None-None]
tests/io/test_precognition.py::test_read_hkl[None-96]
tests/io/test_precognition.py::test_read_hkl[None-P 43 21 2]
tests/io/test_precognition.py::test_read_hkl[cell1-None]
tests/io/test_precognition.py::test_read_hkl[cell1-96]
tests/io/test_precognition.py::test_read_hkl[cell1-P 43 21 2]
  /Users/kmdalton/opt/reciprocalspaceship/reciprocalspaceship/io/precognition.py:31: FutureWarning: The 'delim_whitespace' keyword in pd.read_csv is deprecated and will be removed in a future version. Use ``sep='\s+'`` instead
    F = pd.read_csv(

tests/io/test_precognition.py: 12 warnings
  /Users/kmdalton/opt/reciprocalspaceship/reciprocalspaceship/io/precognition.py:49: FutureWarning: The 'delim_whitespace' keyword in pd.read_csv is deprecated and will be removed in a future version. Use ``sep='\s+'`` instead
    F = pd.read_csv(

I'll try to dig up some more details, but I figured it was worth raising this.

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

1 participant
0