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 3d3d2562b67a [SPARK-58590][PS] Remove obsolete pandas 0.24.0 version 
notes from datetime accessor docstrings
3d3d2562b67a is described below

commit 3d3d2562b67a96cd66f57b0e52cea87397bf3537
Author: Uros Bojanic <[email protected]>
AuthorDate: Thu Aug 6 09:45:23 2026 +0000

    [SPARK-58590][PS] Remove obsolete pandas 0.24.0 version notes from datetime 
accessor docstrings
    
    ### What changes were proposed in this pull request?
    Removes three identical obsolete notes from the `DatetimeMethods.round`, 
`floor` and `ceil` docstrings in pandas-on-Spark:
    
    ```
    .. note:: this option only works with pandas 0.24.0+
    ```
    
    ### Why are the changes needed?
    PySpark requires pandas 2.2.0 or newer (`require_minimum_pandas_version` in 
`python/pyspark/sql/pandas/utils.py`, and `pandas>=2.2.0` in the packaging 
setup files), so the 0.24.0 condition can never be false. The note is dead and 
slightly misleading to readers of the API docs.
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Docstring-only change; no code paths are touched. No tests needed.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    Generated-by: Claude Code (Opus 4.8)
    
    Closes #57793 from uros-b/deadcomment-datetimes-pandas.
    
    Authored-by: Uros Bojanic <[email protected]>
    Signed-off-by: Uros Bojanic <[email protected]>
    (cherry picked from commit eb318ba30c0290d4e9812ac9229cb75319f6f6f9)
    Signed-off-by: Uros Bojanic <[email protected]>
---
 python/pyspark/pandas/datetimes.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/python/pyspark/pandas/datetimes.py 
b/python/pyspark/pandas/datetimes.py
index aee37e11ab96..e0562749b6d9 100644
--- a/python/pyspark/pandas/datetimes.py
+++ b/python/pyspark/pandas/datetimes.py
@@ -688,8 +688,6 @@ class DatetimeMethods:
             - 'raise' will raise an NonExistentTimeError if there are
               nonexistent times
 
-            .. note:: this option only works with pandas 0.24.0+
-
         Returns
         -------
         Series
@@ -748,8 +746,6 @@ class DatetimeMethods:
             - 'raise' will raise an NonExistentTimeError if there are
               nonexistent times
 
-            .. note:: this option only works with pandas 0.24.0+
-
         Returns
         -------
         Series
@@ -808,8 +804,6 @@ class DatetimeMethods:
             - 'raise' will raise an NonExistentTimeError if there are
               nonexistent times
 
-            .. note:: this option only works with pandas 0.24.0+
-
         Returns
         -------
         Series


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

Reply via email to