diff options
author | Sean Owen <sowen@cloudera.com> | 2015-07-31 13:45:28 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-07-31 13:45:28 -0700 |
commit | 873ab0f9692d8ea6220abdb8d9200041068372a8 (patch) | |
tree | e1116f9c5a53c796943ad189be61aceca5f31653 /docs/ml-guide.md | |
parent | 815c8245f47e61226a04e2e02f508457b5e9e536 (diff) | |
download | spark-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/ml-guide.md')
-rw-r--r-- | docs/ml-guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ml-guide.md b/docs/ml-guide.md index 8c46adf256..b6ca50e98d 100644 --- a/docs/ml-guide.md +++ b/docs/ml-guide.md @@ -561,7 +561,7 @@ test = sc.parallelize([(4L, "spark i j k"), prediction = model.transform(test) selected = prediction.select("id", "text", "prediction") for row in selected.collect(): - print row + print(row) sc.stop() {% endhighlight %} |