From 3eb871b4d860788ded82bab15816c65e82dd6346 Mon Sep 17 00:00:00 2001 From: Renato Maciel Date: Wed, 1 Mar 2023 01:53:31 -0300 Subject: [PATCH] add test for apply/reconstruct_func --- pandas/tests/apply/test_frame_apply_relabeling.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandas/tests/apply/test_frame_apply_relabeling.py b/pandas/tests/apply/test_frame_apply_relabeling.py index 2da4a78991f5a..95103de857399 100644 --- a/pandas/tests/apply/test_frame_apply_relabeling.py +++ b/pandas/tests/apply/test_frame_apply_relabeling.py @@ -95,3 +95,11 @@ def test_agg_namedtuple(): index=pd.Index(["foo", "bar", "cat"]), ) tm.assert_frame_equal(result, expected) + + +def test_reconstruct_func(): + # GH 28472, test to ensure reconstruct_func isn't moved; + # This method is used by other libraries (e.g. dask) + result = pd.core.apply.reconstruct_func("min") + expected = (False, "min", None, None) + tm.assert_equal(result, expected)