Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/20949#discussion_r203229065
--- Diff: python/pyspark/sql/readwriter.py ---
@@ -895,6 +895,8 @@ def csv(self, path, mode=None, compression=None,
sep=None, quote=None, escape=No
the quote character. If None is
set, the default value is
escape character when escape and
quote characters are
different, ``\0`` otherwise..
+ :param encoding: sets the encoding (charset) to be used on the csv
file. If None is set, it
+ uses the default value,
``UTF-8``.
--- End diff --
Likewise, let's match the doc to JSON's.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]