From 099f218c0c1ef422a7f8b7fc925ac0ddd1506a81 Mon Sep 17 00:00:00 2001 From: Matthew Murray Date: Thu, 24 Oct 2024 05:20:35 -0700 Subject: [PATCH] add a test --- python/cudf/cudf_pandas_tests/test_cudf_pandas.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/cudf/cudf_pandas_tests/test_cudf_pandas.py b/python/cudf/cudf_pandas_tests/test_cudf_pandas.py index 7aefdc386bb..5d333a6e7ff 100644 --- a/python/cudf/cudf_pandas_tests/test_cudf_pandas.py +++ b/python/cudf/cudf_pandas_tests/test_cudf_pandas.py @@ -902,6 +902,14 @@ def test_itertuples(): assert result._fields == expected._fields +def test_iteration_over_dataframe_dtypes_produces_proxy_objects(dataframe): + _, xdf = dataframe + xdf["b"] = xpd.IntervalIndex.from_arrays(xdf["a"], xdf["b"]) + xdf["a"] = xdf["a"].astype("category") + for x in xdf.dtypes: + assert is_proxy_object(x) + + def test_namedagg_namedtuple(): df = xpd.DataFrame( {