Sign in
apache
/
spark-website
/
2c562896505588421cce257d111c8ba3805528c2
/
.
/
site
/
docs
/
3.4.3
/
api
/
python
/
reference
/
pyspark.pandas
/
api
/
pyspark-pandas-Series-plot-barh-2.py
blob: 685964f17b21ed051145993b12ee4f7c71b90fea [
file
] [
log
] [
blame
]
df
=
ps
.
DataFrame
({
'lab'
:
[
'A'
,
'B'
,
'C'
],
'val'
:
[
10
,
30
,
20
]})
df
.
plot
.
barh
(
x
=
'lab'
,
y
=
'val'
)
# doctest: +SKIP