You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/08/24 00:02:14 UTC
[spark] branch master updated: Revert "[SPARK-39150][PS] Enable doctest which was disabled when pandas 1.4 upgrade"
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new d32a67f92cf Revert "[SPARK-39150][PS] Enable doctest which was disabled when pandas 1.4 upgrade"
d32a67f92cf is described below
commit d32a67f92cfcc7c67f44e682d4c3612d60ba1b3a
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Wed Aug 24 09:01:48 2022 +0900
Revert "[SPARK-39150][PS] Enable doctest which was disabled when pandas 1.4 upgrade"
This reverts commit def17af41f4480191c9a197b853d5e79a8387177.
---
python/pyspark/pandas/frame.py | 10 +++++-----
python/pyspark/pandas/groupby.py | 4 ++--
python/pyspark/pandas/indexes/base.py | 2 +-
python/pyspark/pandas/series.py | 8 ++++----
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/python/pyspark/pandas/frame.py b/python/pyspark/pandas/frame.py
index 72913bc17d3..00a8aa0ec99 100644
--- a/python/pyspark/pandas/frame.py
+++ b/python/pyspark/pandas/frame.py
@@ -568,7 +568,7 @@ class DataFrame(Frame, Generic[T]):
>>> df = ps.DataFrame([[1, 2], [4, 5], [7, 8]],
... index=['cobra', 'viper', None],
... columns=['max_speed', 'shield'])
- >>> df
+ >>> df # doctest: +SKIP
max_speed shield
cobra 1 2
viper 4 5
@@ -7248,19 +7248,19 @@ defaultdict(<class 'list'>, {'col..., 'col...})]
--------
>>> df = ps.DataFrame({'A': [2, 1, np.nan]}, index=['b', 'a', np.nan])
- >>> df.sort_index()
+ >>> df.sort_index() # doctest: +SKIP
A
a 1.0
b 2.0
None NaN
- >>> df.sort_index(ascending=False)
+ >>> df.sort_index(ascending=False) # doctest: +SKIP
A
b 2.0
a 1.0
None NaN
- >>> df.sort_index(na_position='first')
+ >>> df.sort_index(na_position='first') # doctest: +SKIP
A
None NaN
a 1.0
@@ -7273,7 +7273,7 @@ defaultdict(<class 'list'>, {'col..., 'col...})]
2 NaN
>>> df.sort_index(inplace=True)
- >>> df
+ >>> df # doctest: +SKIP
A
a 1.0
b 2.0
diff --git a/python/pyspark/pandas/groupby.py b/python/pyspark/pandas/groupby.py
index c343ceb92ee..4377ad6a5c9 100644
--- a/python/pyspark/pandas/groupby.py
+++ b/python/pyspark/pandas/groupby.py
@@ -2382,7 +2382,7 @@ class GroupBy(Generic[FrameLike], metaclass=ABCMeta):
... ["g", "g3"],
... ["h", "h0"],
... ["h", "h1"]], columns=["A", "B"])
- >>> df.groupby("A").head(-1)
+ >>> df.groupby("A").head(-1) # doctest: +SKIP
A B
0 g g0
1 g g1
@@ -2450,7 +2450,7 @@ class GroupBy(Generic[FrameLike], metaclass=ABCMeta):
... ["g", "g3"],
... ["h", "h0"],
... ["h", "h1"]], columns=["A", "B"])
- >>> df.groupby("A").tail(-1)
+ >>> df.groupby("A").tail(-1) # doctest: +SKIP
A B
3 g g3
2 g g2
diff --git a/python/pyspark/pandas/indexes/base.py b/python/pyspark/pandas/indexes/base.py
index 7e219d577c0..facedb1dc91 100644
--- a/python/pyspark/pandas/indexes/base.py
+++ b/python/pyspark/pandas/indexes/base.py
@@ -1163,7 +1163,7 @@ class Index(IndexOpsMixin):
>>> df = ps.DataFrame([[1, 2], [4, 5], [7, 8]],
... index=['cobra', 'viper', None],
... columns=['max_speed', 'shield'])
- >>> df
+ >>> df # doctest: +SKIP
max_speed shield
cobra 1 2
viper 4 5
diff --git a/python/pyspark/pandas/series.py b/python/pyspark/pandas/series.py
index fa99ddf76ce..c24edf0d976 100644
--- a/python/pyspark/pandas/series.py
+++ b/python/pyspark/pandas/series.py
@@ -2969,7 +2969,7 @@ class Series(Frame, IndexOpsMixin, Generic[T]):
--------
>>> s = ps.Series([2, 1, np.nan], index=['b', 'a', np.nan])
- >>> s.sort_index()
+ >>> s.sort_index() # doctest: +SKIP
a 1.0
b 2.0
None NaN
@@ -2981,20 +2981,20 @@ class Series(Frame, IndexOpsMixin, Generic[T]):
2 NaN
dtype: float64
- >>> s.sort_index(ascending=False)
+ >>> s.sort_index(ascending=False) # doctest: +SKIP
b 2.0
a 1.0
None NaN
dtype: float64
- >>> s.sort_index(na_position='first')
+ >>> s.sort_index(na_position='first') # doctest: +SKIP
None NaN
a 1.0
b 2.0
dtype: float64
>>> s.sort_index(inplace=True)
- >>> s
+ >>> s # doctest: +SKIP
a 1.0
b 2.0
None NaN
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org