Skip to content

Commit

Permalink
Merge pull request #859 from marcraminv/doc/replace-spark-init-line
Browse files Browse the repository at this point in the history
[Doc] Change Spark Python Notebook entry point sentence
  • Loading branch information
parente committed May 4, 2019
2 parents f8c3e3d + 23c1376 commit af17bdf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/using/specifics.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ Spark local mode is useful for experimentation on small data when you do not hav
#### In a Python Notebook

```python
import pyspark
sc = pyspark.SparkContext('local[*]')

from pyspark.sql import SparkSession
spark = SparkSession.builder.appName("SimpleApp").getOrCreate()
# do something to prove it works
rdd = sc.parallelize(range(1000))
rdd.takeSample(False, 5)
spark.sql('SELECT "Test" as c1').show()
```

#### In a R Notebook
Expand Down

0 comments on commit af17bdf

Please sign in to comment.