From d8d53e587c735adb1f57f91e1a1ad85fd826669a Mon Sep 17 00:00:00 2001 From: Sarva Sanjay Date: Thu, 3 Nov 2022 02:21:25 -0400 Subject: [PATCH] Update apply.py --- pandas/core/apply.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pandas/core/apply.py b/pandas/core/apply.py index cccef939f94d4..da6526e13f0c6 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -734,12 +734,6 @@ def agg(self): result = None try: result = super().agg() - except TypeError as err: - exc = TypeError( - "DataFrame constructor called with " - f"incompatible data and dtype: {err}" - ) - raise exc from err finally: self.obj = obj self.axis = axis