From 948fa0e3e6b647e37f0a1438086099bb3c141050 Mon Sep 17 00:00:00 2001 From: Haejoon Lee Date: Sat, 16 Sep 2023 20:59:38 -0700 Subject: [PATCH] [SPARK-43458][SPARK-43561][PS][TESTS] Enable `test_to_latex` for (Series|DataFrame) conversion ### What changes were proposed in this pull request? This PR proposes to enable `SeriesConversionTests.test_to_latex` and `DataFrameConversionTests.test_to_latex`. ### Why are the changes needed? To improve the test coverage. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Enabling the existing tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #42954 from itholic/enable_to_latex. Authored-by: Haejoon Lee Signed-off-by: Dongjoon Hyun --- python/pyspark/pandas/tests/test_dataframe_conversion.py | 4 ---- python/pyspark/pandas/tests/test_series_conversion.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/python/pyspark/pandas/tests/test_dataframe_conversion.py b/python/pyspark/pandas/tests/test_dataframe_conversion.py index 655c0970082f8..283849a06d58a 100644 --- a/python/pyspark/pandas/tests/test_dataframe_conversion.py +++ b/python/pyspark/pandas/tests/test_dataframe_conversion.py @@ -202,10 +202,6 @@ def test_to_clipboard(self): psdf.to_clipboard(sep=";", index=False), pdf.to_clipboard(sep=";", index=False) ) - @unittest.skipIf( - LooseVersion(pd.__version__) >= LooseVersion("2.0.0"), - "TODO(SPARK-43561): Enable DataFrameConversionTests.test_to_latex for pandas 2.0.0.", - ) def test_to_latex(self): pdf = self.pdf psdf = self.psdf diff --git a/python/pyspark/pandas/tests/test_series_conversion.py b/python/pyspark/pandas/tests/test_series_conversion.py index 757da1672500a..b0a97b0a6f811 100644 --- a/python/pyspark/pandas/tests/test_series_conversion.py +++ b/python/pyspark/pandas/tests/test_series_conversion.py @@ -49,10 +49,6 @@ def test_to_clipboard(self): psser.to_clipboard(sep=",", index=False), pser.to_clipboard(sep=",", index=False) ) - @unittest.skipIf( - LooseVersion(pd.__version__) >= LooseVersion("2.0.0"), - "TODO(SPARK-43458): Enable SeriesConversionTests.test_to_latex for pandas 2.0.0.", - ) def test_to_latex(self): pser = self.pser psser = self.psser