We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c2c753 commit 62d1f5cCopy full SHA for 62d1f5c
pandas/core/apply.py
@@ -370,6 +370,8 @@ def agg_list_like(self) -> DataFrame | Series:
370
# Capture and suppress any warnings emitted by us in the call
371
# to agg below, but pass through any warnings that were
372
# generated otherwise.
373
+ # This is necessary because of https://bugs.python.org/issue29672
374
+ # See GH #43741 for more details
375
with warnings.catch_warnings(record=True) as record:
376
new_res = colg.aggregate(arg)
377
if len(record) > 0:
0 commit comments