mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Add z.show() feature to docs
I was unaware of this really nice feature, which led me to writing my own "zeppelin_show" function.
This commit is contained in:
parent
985b86e4d2
commit
7ab6f41111
1 changed files with 8 additions and 0 deletions
|
|
@ -297,6 +297,14 @@ z.load("groupId:artifactId:version").local()
|
|||
## ZeppelinContext
|
||||
Zeppelin automatically injects `ZeppelinContext` as variable `z` in your Scala/Python environment. `ZeppelinContext` provides some additional functions and utilities.
|
||||
|
||||
### Exploring Spark DataFrames
|
||||
`ZeppelinContext` provides a `show` method, which, using Zeppelin's `table` feature, can be used to nicely display a Spark DataFrame:
|
||||
|
||||
```
|
||||
df = spark.read.csv('/path/to/csv')
|
||||
z.show(df)
|
||||
```
|
||||
|
||||
### Object Exchange
|
||||
`ZeppelinContext` extends map and it's shared between Scala and Python environment.
|
||||
So you can put some objects from Scala and read it from Python, vice versa.
|
||||
|
|
|
|||
Loading…
Reference in a new issue