I'm trying to replace my column with NaN
group_choices = ['Group1', 'Group2', 'Group3']
Groups limit
1 NaN NaN
2 Group1 2
3 Group2 2
4 Group3 2
5 NaN NaN
6 NaN NaN
7 NaN NaN
How can I replace NaN, randomly based on the group_choises?
I'm also trying to limit how often a group_choise can be randomised selected because of the limit value in the limit column.
I'm trying to get this result:
Groups limit
1 Group3 NaN
2 Group1 2
3 Group2 2
4 Group3 2
5 Group1 NaN
6 Group2 NaN
7 Out of groups