Possible to create a player class from the pick class from draft picks? #506
-
the goal is to count WRs, RBs, etc. drafted by each player |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So the draft API response only gives that information back. There are two ways you then could map that player to a player class. One the draft does have the Team class associated with it so you could filter through the team roster and find the player matching the playerId. However if that player is no longer on the Team it could be an issue, so you could use the |
Beta Was this translation helpful? Give feedback.
So the draft API response only gives that information back. There are two ways you then could map that player to a player class. One the draft does have the Team class associated with it so you could filter through the team roster and find the player matching the playerId. However if that player is no longer on the Team it could be an issue, so you could use the
league.player_info(playerId='123')
and pass the playerId from the draft. That will return the player class.