Note
Click here to download the full example code
Marcel Projections - PitchingΒΆ
Out:
H HR ... HBP R
playerID yearID ...
colege01 2020 145.190329 23.916119 ... 4.835923 71.164678
verlaju01 2020 145.192833 28.656685 ... 6.302306 68.739815
degroja01 2020 147.740156 17.419418 ... 5.515039 61.433772
scherma01 2020 134.729027 19.137910 ... 8.205640 61.732141
bauertr01 2020 162.130978 23.420415 ... 11.851444 87.746950
[5 rows x 7 columns]
from pybbda.analysis.projections import MarcelProjectionsPitching
pitching_marcels = MarcelProjectionsPitching()
print(
pitching_marcels.projections(projected_season=2020)
.sort_values("SO", ascending=False)
.head(5)
)
Total running time of the script: ( 0 minutes 1.872 seconds)