Sign in
apache
/
spark-website
/
74943c8625877cef547882f29b430d612b6f6a45
/
.
/
site
/
docs
/
4.0.0-preview1
/
api
/
python
/
reference
/
pyspark.pandas
/
api
/
pyspark-pandas-DataFrame-plot-area-1.py
blob: fc2ae76a90f9413828ecc1414b4790b93f55b3ee [
file
] [
log
] [
blame
]
df
=
ps
.
DataFrame
({
'sales'
:
[
3
,
2
,
3
,
9
,
10
,
6
],
'signups'
:
[
5
,
5
,
6
,
12
,
14
,
13
],
'visits'
:
[
20
,
42
,
28
,
62
,
81
,
50
],
},
index
=
pd
.
date_range
(
start
=
'2018/01/01'
,
end
=
'2018/07/01'
,
freq
=
'M'
))
df
.
sales
.
plot
.
area
()
# doctest: +SKIP