diff options
author | Patrick Wendell <pwendell@gmail.com> | 2013-01-30 15:04:06 -0800 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2013-01-30 15:04:06 -0800 |
commit | 3f945e3b830c5a7d50acd61c5aabf964f40f7f4b (patch) | |
tree | dde20830f3cc19953f957d705efc57f750732316 /docs | |
parent | 58a7d320d7287f3773976f0efdf2bc2c1474f7f9 (diff) | |
download | spark-3f945e3b830c5a7d50acd61c5aabf964f40f7f4b.tar.gz spark-3f945e3b830c5a7d50acd61c5aabf964f40f7f4b.tar.bz2 spark-3f945e3b830c5a7d50acd61c5aabf964f40f7f4b.zip |
Make module help available in python shell.
Also, adds a line in doc explaining how to use.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/python-programming-guide.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/python-programming-guide.md b/docs/python-programming-guide.md index 94311bd102..4e84d23edf 100644 --- a/docs/python-programming-guide.md +++ b/docs/python-programming-guide.md @@ -80,6 +80,7 @@ The Python shell can be used explore data interactively and is a simple way to l >>> words = sc.textFile("/usr/share/dict/words") >>> words.filter(lambda w: w.startswith("spar")).take(5) [u'spar', u'sparable', u'sparada', u'sparadrap', u'sparagrass'] +>>> help(pyspark) # Show all pyspark functions {% endhighlight %} By default, the `pyspark` shell creates SparkContext that runs jobs locally. |