mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 15:32:56 +00:00
Change python entry point sentence
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user