You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/12/09 11:46:56 UTC

[GitHub] [spark] Yikun opened a new pull request, #39006: [SPARK-40270][PS][FOLLOWUP][3.2] Skip test_style when pandas <1.3.0

Yikun opened a new pull request, #39006:
URL: https://github.com/apache/spark/pull/39006

   ### What changes were proposed in this pull request?
   According to https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.to_latex.html:
   `pandas.io.formats.style.Styler.to_latex` introduced since 1.3.0, so before panda 1.3.0, should skip the check
   
   ```
   ERROR [0.180s]: test_style (pyspark.pandas.tests.test_dataframe.DataFrameTest)
   ----------------------------------------------------------------------
   Traceback (most recent call last):
     File "/__w/spark/spark/python/pyspark/pandas/tests/test_dataframe.py", line 5795, in test_style
       check_style()
     File "/__w/spark/spark/python/pyspark/pandas/tests/test_dataframe.py", line 5793, in check_style
       self.assert_eq(pdf_style.to_latex(), psdf_style.to_latex())
   AttributeError: 'Styler' object has no attribute 'to_latex'
   ```
   
   Related: https://github.com/apache/spark/commit/58375a86e6ff49c5bcee49939fbd98eb848ae59f
   
   ### Why are the changes needed?
   This test break the 3.2 branch pyspark test (with python 3.6 + pandas 1.1.x), so I think better add the `skipIf` it.
   
   See also https://github.com/apache/spark/pull/38982#issuecomment-1343923114
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   CI passed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] Yikun closed pull request #39006: [SPARK-40270][PS][FOLLOWUP][3.2] Skip test_style when pandas <1.3.0

Posted by GitBox <gi...@apache.org>.
Yikun closed pull request #39006: [SPARK-40270][PS][FOLLOWUP][3.2] Skip test_style when pandas <1.3.0
URL: https://github.com/apache/spark/pull/39006


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org