Note
Click here to download the full example code
Fangraphs Park Factors HandednessΒΆ
Out:
<matplotlib.axes._subplots.AxesSubplot object at 0x7f0c8eafb690>
import seaborn as sns
from pybbda.data import FangraphsData
fg_data = FangraphsData()
pl_col = "HR as R"
sns.barplot(
data=fg_data.fg_park_factors_handedness_2018.sort_values(pl_col, ascending=False),
y="Team",
x=pl_col,
color="steelblue",
)
Total running time of the script: ( 0 minutes 0.182 seconds)