Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
af17bdf6
Commit
af17bdf6
authored
May 04, 2019
by
Peter Parente
Committed by
GitHub
May 04, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #859 from marcraminv/doc/replace-spark-init-line
[Doc] Change Spark Python Notebook entry point sentence
parents
f8c3e3d6
23c13762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
docs/using/specifics.md
docs/using/specifics.md
+3
-5
No files found.
docs/using/specifics.md
View file @
af17bdf6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment