BUG: PerformanceWarning when agg with pd.NamedAgg and as_index=False #61628
Labels
Bug
Needs Info
Clarification about behavior needed to assess issue
Warnings
Warnings that appear or should be added to pandas
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
there is an inconsistent behavior (PerformanceWarning) of agg when
as_index
is True/False. Please refer to the example above.Expected Behavior
No
PerformanceWarning
is raised whenas_index=False
Installed Versions
v2.3.0
The text was updated successfully, but these errors were encountered: