Change python entry point sentence

This commit is contained in:
Marc Ramirez
2019-05-01 20:14:24 +02:00
parent ae5f7e104d
commit 23c137626f

View File

@@ -13,12 +13,10 @@ Spark local mode is useful for experimentation on small data when you do not hav
#### In a Python Notebook #### In a Python Notebook
```python ```python
import pyspark from pyspark.sql import SparkSession
sc = pyspark.SparkContext('local[*]') spark = SparkSession.builder.appName("SimpleApp").getOrCreate()
# do something to prove it works # do something to prove it works
rdd = sc.parallelize(range(1000)) spark.sql('SELECT "Test" as c1').show()
rdd.takeSample(False, 5)
``` ```
#### In a R Notebook #### In a R Notebook