[MINOR][DOCS] Fix typo in PySpark example in ml-datasource.md

### What changes were proposed in this pull request?

This PR changes `true` to `True` in the python code.

### Why are the changes needed?

The previous example is a syntax error.

### Does this PR introduce _any_ user-facing change?

Yes, but this is doc-only typo fix.

### How was this patch tested?

Manually run the example.

Closes #29073 from ChuliangXiao/patch-1.

Authored-by: Chuliang Xiao <ChuliangX@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This commit is contained in:
Chuliang Xiao 2020-07-12 09:01:41 -07:00 committed by Dongjoon Hyun
parent 6ae400ccbe
commit c56c84af47

View file

@ -86,7 +86,7 @@ Will output:
In PySpark we provide Spark SQL data source API for loading image data as a DataFrame. In PySpark we provide Spark SQL data source API for loading image data as a DataFrame.
{% highlight python %} {% highlight python %}
>>> df = spark.read.format("image").option("dropInvalid", true).load("data/mllib/images/origin/kittens") >>> df = spark.read.format("image").option("dropInvalid", True).load("data/mllib/images/origin/kittens")
>>> df.select("image.origin", "image.width", "image.height").show(truncate=False) >>> df.select("image.origin", "image.width", "image.height").show(truncate=False)
+-----------------------------------------------------------------------+-----+------+ +-----------------------------------------------------------------------+-----+------+
|origin |width|height| |origin |width|height|