diff --git a/python/pyspark/pandas/base.py b/python/pyspark/pandas/base.py index b45d14e0be437..5b5559837d974 100644 --- a/python/pyspark/pandas/base.py +++ b/python/pyspark/pandas/base.py @@ -1367,7 +1367,7 @@ def value_counts( ('falcon', 'length')], ) - >>> s.index.value_counts().sort_index() # doctest: +SKIP + >>> s.index.value_counts().sort_index() (cow, length) 1 (cow, weight) 2 (falcon, length) 2 @@ -1375,7 +1375,7 @@ def value_counts( (lama, weight) 3 Name: count, dtype: int64 - >>> s.index.value_counts(normalize=True).sort_index() # doctest: +SKIP + >>> s.index.value_counts(normalize=True).sort_index() (cow, length) 0.111111 (cow, weight) 0.222222 (falcon, length) 0.222222 @@ -1745,6 +1745,7 @@ def _test() -> None: spark = ( SparkSession.builder.master("local[4]").appName("pyspark.pandas.base tests").getOrCreate() ) + spark.conf.set("spark.sql.execution.pandas.structHandlingMode", "row") (failure_count, test_count) = doctest.testmod( pyspark.pandas.base, globs=globs,