From c56c84af473547c9e9cab7ef6422f2b550084b59 Mon Sep 17 00:00:00 2001 From: Chuliang Xiao Date: Sun, 12 Jul 2020 09:01:41 -0700 Subject: [PATCH] [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 Signed-off-by: Dongjoon Hyun --- docs/ml-datasource.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ml-datasource.md b/docs/ml-datasource.md index 0f2f5f482e..8e9c947b75 100644 --- a/docs/ml-datasource.md +++ b/docs/ml-datasource.md @@ -86,7 +86,7 @@ Will output: In PySpark we provide Spark SQL data source API for loading image data as a DataFrame. {% 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) +-----------------------------------------------------------------------+-----+------+ |origin |width|height|