Skip to content

Commit 8911f1d

Browse files
committed
Use ASCII characters when possible in PySpark documentation
1 parent 571acc8 commit 8911f1d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

python/docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ SQL query engine.
4242

4343
Running on top of Spark, the streaming feature in Apache Spark enables powerful
4444
interactive and analytical applications across both streaming and historical data,
45-
while inheriting Sparks ease of use and fault tolerance characteristics.
45+
while inheriting Spark's ease of use and fault tolerance characteristics.
4646

4747
**MLlib**
4848

python/docs/source/migration_guide/pyspark_2.4_to_3.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Upgrading from PySpark 2.4 to 3.0
2222

2323
* In Spark 3.0, PySpark requires a pandas version of 0.23.2 or higher to use pandas related functionality, such as ``toPandas``, ``createDataFrame`` from pandas DataFrame, and so on.
2424

25-
* In Spark 3.0, PySpark requires a PyArrow version of 0.12.1 or higher to use PyArrow related functionality, such as ``pandas_udf``, ``toPandas`` and ``createDataFrame`` with spark.sql.execution.arrow.enabled=true, etc.
25+
* In Spark 3.0, PySpark requires a PyArrow version of 0.12.1 or higher to use PyArrow related functionality, such as ``pandas_udf``, ``toPandas`` and ``createDataFrame`` with "spark.sql.execution.arrow.enabled=true", etc.
2626

2727
* In PySpark, when creating a ``SparkSession`` with ``SparkSession.builder.getOrCreate()``, if there is an existing ``SparkContext``, the builder was trying to update the ``SparkConf`` of the existing ``SparkContext`` with configurations specified to the builder, but the ``SparkContext`` is shared by all ``SparkSession`` s, so we should not update them. In 3.0, the builder comes to not update the configurations. This is the same behavior as Java/Scala API in 2.3 and above. If you want to update them, you need to update them prior to creating a ``SparkSession``.
2828

python/docs/source/user_guide/python_packaging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ In the case of a ``spark-submit`` script, you can use it as follows:
107107
108108
Note that ``PYSPARK_DRIVER_PYTHON`` above should not be set for cluster modes in YARN or Kubernetes.
109109

110-
If youre on a regular Python shell or notebook, you can try it as shown below:
110+
If you're on a regular Python shell or notebook, you can try it as shown below:
111111

112112
.. code-block:: python
113113

python/pyspark/ml/fpm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ class FPGrowth(JavaEstimator, _FPGrowthParams, JavaMLWritable, JavaMLReadable):
161161
.. [1] Haoyuan Li, Yi Wang, Dong Zhang, Ming Zhang, and Edward Y. Chang. 2008.
162162
Pfp: parallel fp-growth for query recommendation.
163163
In Proceedings of the 2008 ACM conference on Recommender systems (RecSys '08).
164-
Association for Computing Machinery, New York, NY, USA, 107114.
164+
Association for Computing Machinery, New York, NY, USA, 107-114.
165165
DOI: https://doi.org/10.1145/1454008.1454027
166166
.. [2] Jiawei Han, Jian Pei, and Yiwen Yin. 2000.
167167
Mining frequent patterns without candidate generation.
168-
SIGMOD Rec. 29, 2 (June 2000), 112.
168+
SIGMOD Rec. 29, 2 (June 2000), 1-12.
169169
DOI: https://doi.org/10.1145/335191.335372
170170
171171

python/pyspark/mllib/clustering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class BisectingKMeans(object):
143143
-----
144144
See the original paper [1]_
145145
146-
.. [1] Steinbach, M. et al. A Comparison of Document Clustering Techniques. (2000).
146+
.. [1] Steinbach, M. et al. "A Comparison of Document Clustering Techniques." (2000).
147147
KDD Workshop on Text Mining, 2000
148148
http://glaros.dtc.umn.edu/gkhome/fetch/papers/docclusterKDDTMW00.pdf
149149
"""

0 commit comments

Comments
 (0)