Skip to content
Snippets Groups Projects
Commit 4c3c1445 authored by root's avatar root
Browse files

First commit on spark study basics

parents
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
from pyspark.sql import SparkSession
```
%% Cell type:code id: tags:
``` python
spark=SparkSession.builder.appName('Basics').getOrCreate()
```
%% Cell type:code id: tags:
``` python
df=spark.read.json('people.json')
```
%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
from pyspark.sql import SparkSession
```
%% Cell type:code id: tags:
``` python
spark=SparkSession.builder.appName('Basics').getOrCreate()
```
%% Cell type:code id: tags:
``` python
df=spark.read.json('people.json')
```
%% Cell type:code id: tags:
``` python
```
{"name":"Michael"}
{"name":"Andy", "age":30}
{"name":"Justin", "age":19}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment