aboutsummaryrefslogtreecommitdiff
path: root/docs/quick-start.md
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2015-07-31 13:45:28 -0700
committerXiangrui Meng <meng@databricks.com>2015-07-31 13:45:28 -0700
commit873ab0f9692d8ea6220abdb8d9200041068372a8 (patch)
treee1116f9c5a53c796943ad189be61aceca5f31653 /docs/quick-start.md
parent815c8245f47e61226a04e2e02f508457b5e9e536 (diff)
downloadspark-873ab0f9692d8ea6220abdb8d9200041068372a8.tar.gz
spark-873ab0f9692d8ea6220abdb8d9200041068372a8.tar.bz2
spark-873ab0f9692d8ea6220abdb8d9200041068372a8.zip
[SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement
Use print(x) not print x for Python 3 in eval examples CC sethah mengxr -- just wanted to close this out before 1.5 Author: Sean Owen <sowen@cloudera.com> Closes #7822 from srowen/SPARK-9490 and squashes the following commits: 01abeba [Sean Owen] Change "print x" to "print(x)" in the rest of the docs too bd7f7fb [Sean Owen] Use print(x) not print x for Python 3 in eval examples
Diffstat (limited to 'docs/quick-start.md')
-rw-r--r--docs/quick-start.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/quick-start.md b/docs/quick-start.md
index bb39e4111f..ce2cc9d216 100644
--- a/docs/quick-start.md
+++ b/docs/quick-start.md
@@ -406,7 +406,7 @@ logData = sc.textFile(logFile).cache()
numAs = logData.filter(lambda s: 'a' in s).count()
numBs = logData.filter(lambda s: 'b' in s).count()
-print "Lines with a: %i, lines with b: %i" % (numAs, numBs)
+print("Lines with a: %i, lines with b: %i" % (numAs, numBs))
{% endhighlight %}