Skip to content

Commit 2c7faa8

Browse files
committed
[SPARK-3909][PySpark][Doc] A corrupted format in Sphinx documents and building warnings
1 parent 0e8203f commit 2c7faa8

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

python/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
# Add any paths that contain custom static files (such as style sheets) here,
132132
# relative to this directory. They are copied after the builtin static files,
133133
# so a file named "default.css" will overwrite the builtin "default.css".
134-
html_static_path = ['_static']
134+
#html_static_path = ['_static']
135135

136136
# Add any extra paths that contain custom files (such as robots.txt or
137137
# .htaccess) here, relative to this directory. These files are copied

python/pyspark/mllib/feature.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def transform(self, word):
4444
"""
4545
:param word: a word
4646
:return: vector representation of word
47+
4748
Transforms a word to its vector representation
4849
4950
Note: local use only
@@ -57,6 +58,7 @@ def findSynonyms(self, x, num):
5758
:param x: a word or a vector representation of word
5859
:param num: number of synonyms to find
5960
:return: array of (word, cosineSimilarity)
61+
6062
Find synonyms of a word
6163
6264
Note: local use only

python/pyspark/rdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ def countApproxDistinct(self, relativeSD=0.05):
20092009
of The Art Cardinality Estimation Algorithm", available
20102010
<a href="http://dx.doi.org/10.1145/2452376.2452456">here</a>.
20112011
2012-
:param relativeSD Relative accuracy. Smaller values create
2012+
:param relativeSD: Relative accuracy. Smaller values create
20132013
counters that require more space.
20142014
It must be greater than 0.000017.
20152015

python/pyspark/sql.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
public classes of Spark SQL:
2020
2121
- L{SQLContext}
22-
Main entry point for SQL functionality.
22+
Main entry point for SQL functionality.
2323
- L{SchemaRDD}
24-
A Resilient Distributed Dataset (RDD) with Schema information for the data contained. In
25-
addition to normal RDD operations, SchemaRDDs also support SQL.
24+
A Resilient Distributed Dataset (RDD) with Schema information for the data contained. In
25+
addition to normal RDD operations, SchemaRDDs also support SQL.
2626
- L{Row}
27-
A Row of data returned by a Spark SQL query.
27+
A Row of data returned by a Spark SQL query.
2828
- L{HiveContext}
29-
Main entry point for accessing data stored in Apache Hive..
29+
Main entry point for accessing data stored in Apache Hive..
3030
"""
3131

3232
import itertools

0 commit comments

Comments
 (0)