aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark/context.py')
-rw-r--r--python/pyspark/context.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/pyspark/context.py b/python/pyspark/context.py
index 2c2cf6a373..2fd3aee01d 100644
--- a/python/pyspark/context.py
+++ b/python/pyspark/context.py
@@ -520,8 +520,8 @@ class SparkContext(object):
...
(a-hdfs-path/part-nnnnn, its content)
- NOTE: Small files are preferred, as each file will be loaded
- fully in memory.
+ .. note:: Small files are preferred, as each file will be loaded
+ fully in memory.
>>> dirPath = os.path.join(tempdir, "files")
>>> os.mkdir(dirPath)
@@ -547,8 +547,8 @@ class SparkContext(object):
in a key-value pair, where the key is the path of each file, the
value is the content of each file.
- Note: Small files are preferred, large file is also allowable, but
- may cause bad performance.
+ .. note:: Small files are preferred, large file is also allowable, but
+ may cause bad performance.
"""
minPartitions = minPartitions or self.defaultMinPartitions
return RDD(self._jsc.binaryFiles(path, minPartitions), self,