Sign in
apache
/
spark-website
/
bf09c083b54ac9a00c74c79b8b38346b2fdd0a59
/
.
/
site
/
docs
/
3.3.3
/
api
/
python
/
reference
/
pyspark.pandas
/
api
/
pyspark-pandas-Series-plot-pie-2.py
blob: 50b3a2ebd55e108c53c200aec0efdfce4f7ec972 [
file
] [
log
] [
blame
]
df
=
ps
.
DataFrame
({
'mass'
:
[
0.330
,
4.87
,
5.97
],
'radius'
:
[
2439.7
,
6051.8
,
6378.1
]},
index
=[
'Mercury'
,
'Venus'
,
'Earth'
])
df
.
plot
.
pie
(
y
=
'mass'
)
# doctest: +SKIP