Sign in
apache
/
spark-website
/
09eecfa321785be33d69343ae8327165c52e9973
/
.
/
site
/
docs
/
3.5.5
/
api
/
python
/
reference
/
pyspark.pandas
/
api
/
pyspark-pandas-DataFrame-plot-scatter-1.py
blob: 6694d64ae99094b0e05c095ec5c29e71d420e14a [
file
] [
log
] [
blame
]
df
=
ps
.
DataFrame
([[
5.1
,
3.5
,
0
],
[
4.9
,
3.0
,
0
],
[
7.0
,
3.2
,
1
],
[
6.4
,
3.2
,
1
],
[
5.9
,
3.0
,
2
]],
columns
=[
'length'
,
'width'
,
'species'
])
df
.
plot
.
scatter
(
x
=
'length'
,
y
=
'width'
)
# doctest: +SKIP