Skip to content

MAINT: Update for pandas API change #11624

Closed

Description

@larsoner

@drammock when you get a chance can you look into https://dev.azure.com/mne-tools/mne-python/_build/results?buildId=24609&view=logs&j=305851a9-a7bb-55db-0042-7e2b6f48aa1c&t=4d37777d-f36a-53aa-9217-6386d15dddcd&l=3448 :

================================== FAILURES ===================================
_____ test_unaggregated_spectrum_to_data_frame[multitaper-complex-False] ______
mne\time_frequency\tests\test_spectrum.py:188: in test_unaggregated_spectrum_to_data_frame
    agg_df = gb.apply(_agg_helper, spectrum._mt_weights, grouping_cols)
C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\pandas\core\groupby\groupby.py:1495: in apply
    warnings.warn(
E   FutureWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Select the columns to operate on after groupby toeither explicitly include or exclude the groupings and silence this warning.
______ test_unaggregated_spectrum_to_data_frame[multitaper-complex-True] ______
mne\time_frequency\tests\test_spectrum.py:188: in test_unaggregated_spectrum_to_data_frame
    agg_df = gb.apply(_agg_helper, spectrum._mt_weights, grouping_cols)
C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\pandas\core\groupby\groupby.py:1495: in apply
    warnings.warn(
E   FutureWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Select the columns to operate on after groupby toeither explicitly include or exclude the groupings and silence this warning.

I'm adding an ignore in #11616 just to get things green but a proper fix is needed

Activity

  1. added this to the 1.4 milestone on Apr 13, 2023
  2. self-assigned this
    on Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions