Skip to content

Commit a1a2e35

Browse files
committed
Fix syntax errors
1 parent 8447a6d commit a1a2e35

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

python/pyspark/sql/readwriter.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def load(self, path=None, format=None, schema=None, **options):
140140
141141
:param path: optional string or a list of string for file-system backed data sources.
142142
:param format: optional string for format of the data source. Default to 'parquet'.
143-
:param schema: optional :class:`pyspark.sql.types.StructType` for the input schema or a DDL-formatted string.
143+
:param schema: optional :class:`pyspark.sql.types.StructType` for the input schema
144+
or a DDL-formatted string.
144145
:param options: all other string options
145146
146147
>>> df = spark.read.load('python/test_support/sql/parquet_partitioned', opt1=True,
@@ -184,7 +185,8 @@ def json(self, path, schema=None, primitivesAsString=None, prefersDecimal=None,
184185
185186
:param path: string represents path to the JSON dataset, or a list of paths,
186187
or RDD of Strings storing JSON objects.
187-
:param schema: an optional :class:`pyspark.sql.types.StructType` for the input schema or a DDL-formatted string.
188+
:param schema: an optional :class:`pyspark.sql.types.StructType` for the input schema or
189+
a DDL-formatted string.
188190
:param primitivesAsString: infers all primitive values as a string type. If None is set,
189191
it uses the default value, ``false``.
190192
:param prefersDecimal: infers all floating-point values as a decimal type. If the values
@@ -327,7 +329,8 @@ def csv(self, path, schema=None, sep=None, encoding=None, quote=None, escape=Non
327329
``inferSchema`` option or specify the schema explicitly using ``schema``.
328330
329331
:param path: string, or list of strings, for input path(s).
330-
:param schema: an optional :class:`pyspark.sql.types.StructType` for the input schema or a DDL-formatted string.
332+
:param schema: an optional :class:`pyspark.sql.types.StructType` for the input schema
333+
or a DDL-formatted string.
331334
:param sep: sets the single character as a separator for each field and value.
332335
If None is set, it uses the default value, ``,``.
333336
:param encoding: decodes the CSV files by the given encoding type. If None is set,

0 commit comments

Comments
 (0)