Dec-29-2022, 05:45 PM
Hello everyone,
I need your help because I can't a good solution of my problem
I have a dataframe, with name of some NBA players, average number and score, it looks like that :
What I would like to do is to find the best output within some criterias:
- Requires five-player (5) rosters
- Points Cap limit is 120
- Each player has a Points Per Game average that counts toward the Points Cap (10Aver1 in my case)
- The player you select with the highest Points Per Game average will be automatically marked as your MVP. The MVP does not count toward your Points Cap
So in the end it's a MVP Player + 4 players in the limit of 120.
How could I loop between everything and find the best 5 players with the highest score possible in the MVP+120 limit ?
Thanks in advance for you big help!
I need your help because I can't a good solution of my problem
I have a dataframe, with name of some NBA players, average number and score, it looks like that :
Quote: PLAYERS 10Aver1 Score1Sorry, seems my table doesn't look good here, don't know how to fix it, I added a picture maybe it's better in the pic.
0 Luka Dončić 57.0 66.4
1 Michael Porter Jr. 23.0 36.7
2 Kevin Porter Jr. 46.0 38.5
3 Desmond Bane 34.0 34.7
4 Bismack Biyombo 8.0 0.0
5 Wendell Carter Jr. 38.0 35.9
6 Max Strus 23.0 39.5
7 Jaden McDaniels 18.0 25.2
8 Brook Lopez 22.0 40.0
9 Dewayne Dedmon 6.0 5.1
10 Bruce Brown 33.0 28.7
11 Drew Eubanks 33.0 10.6
12 Luke Kennard 21.0 13.2
13 Nic Claxton 24.0 48.2
14 Landry Shamet 9.0 15.7
15 Mo Bamba 33.0 16.2
16 Zach Collins 25.0 29.299999999999997
17 Jevon Carter 7.0 7.199999999999999
18 Omer Yurtseven 6.0 0.0
19 Dalano Banton 4.0 7.0
What I would like to do is to find the best output within some criterias:
- Requires five-player (5) rosters
- Points Cap limit is 120
- Each player has a Points Per Game average that counts toward the Points Cap (10Aver1 in my case)
- The player you select with the highest Points Per Game average will be automatically marked as your MVP. The MVP does not count toward your Points Cap
So in the end it's a MVP Player + 4 players in the limit of 120.
How could I loop between everything and find the best 5 players with the highest score possible in the MVP+120 limit ?
Thanks in advance for you big help!