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

MAINT: Pandas deprecation #3922

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions nilearn/glm/first_level/experimental_paradigm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"""
import warnings

import numpy as np
import pandas as pd
from pandas.api.types import is_numeric_dtype

Expand Down Expand Up @@ -107,7 +106,7 @@ def check_events(events):

# Duplicate handling strategy
# Sum the modulation values of duplicate events
STRATEGY = {"modulation": np.sum}
STRATEGY = {"modulation": "sum"}

cleaned_events = (
events_copy.groupby(COLUMN_DEFINING_EVENT_IDENTITY, sort=False)
Expand Down