This is an automated email from the ASF dual-hosted git repository.

uros-b pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.x by this push:
     new b6529aa02956 [SPARK-58417][PS] Remove stale Python 2 reference in 
DataFrame.to_latex docstring
b6529aa02956 is described below

commit b6529aa0295643b76bc363763f065c01e44162ed
Author: Uros Bojanic <[email protected]>
AuthorDate: Wed Jul 29 21:21:25 2026 +0000

    [SPARK-58417][PS] Remove stale Python 2 reference in DataFrame.to_latex 
docstring
    
    ### What changes were proposed in this pull request?
    Removes the stale Python 2 branch from the `encoding` parameter docstring 
of `DataFrame.to_latex`, collapsing it to a single accurate line stating the 
default is `utf-8`.
    
    ### Why are the changes needed?
    Spark requires Python >= 3.11 (`python_requires` in setup.py), so the 
"'ascii' on Python 2" note is dead and misleading.
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Docstring-only change. No tests needed.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    Generated-by: Claude Code (Opus 4.8)
    
    Closes #57621 from uros-b/deadcomment-tolatex-python2.
    
    Authored-by: Uros Bojanic <[email protected]>
    Signed-off-by: Uros Bojanic <[email protected]>
    (cherry picked from commit 7692b9fafa93243026a5c7a6b386189c78174f90)
    Signed-off-by: Uros Bojanic <[email protected]>
---
 python/pyspark/pandas/frame.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/python/pyspark/pandas/frame.py b/python/pyspark/pandas/frame.py
index 4b9ce84b3b7a..d196a85070bd 100644
--- a/python/pyspark/pandas/frame.py
+++ b/python/pyspark/pandas/frame.py
@@ -2633,8 +2633,7 @@ defaultdict(<class 'list'>, {'col..., 'col...})]
             By default the value will be read from the pandas config module. 
When set to False
             prevents from escaping latex special characters in column names.
         encoding : str, optional
-            A string representing the encoding to use in the output file, 
defaults to 'ascii' on
-            Python 2 and 'utf-8' on Python 3.
+            A string representing the encoding to use in the output file, 
defaults to 'utf-8'.
         decimal : str, default '.'
             Character recognized as decimal separator, e.g. ',' in Europe.
         multicolumn : bool, default True


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to