diff --git a/python/pyspark/pandas/tests/test_dataframe.py b/python/pyspark/pandas/tests/test_dataframe.py index 0a7eda77564c..0c23bf07a69d 100644 --- a/python/pyspark/pandas/tests/test_dataframe.py +++ b/python/pyspark/pandas/tests/test_dataframe.py @@ -6375,6 +6375,10 @@ def test_cov(self): psdf = ps.from_pandas(pdf) self.assert_eq(pdf.cov(), psdf.cov()) + @unittest.skipIf( + LooseVersion(pd.__version__) < LooseVersion("1.3.0"), + "pandas support `Styler.to_latex` since 1.3.0", + ) def test_style(self): # Currently, the `style` function returns a pandas object `Styler` as it is, # processing only the number of rows declared in `compute.max_rows`.