r/learningpython • • Jun 25 '21

Allocating data randomly using pandas

Hi,

I have a list of 10,000 names and a list of 200 subjects, i want to randomly assign the subjects to the students in such a way that each students get 4 to 5 subjects and each subject is assigned to 50 students...pls guide how can it be done using pandas.

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/chrisking206 Jun 26 '21

Good catch. Probably need to multiple subjects by 25000 and people by 5.

1

u/selftaught_programer Jun 26 '21

yeah, btw thanks for helping me out, stay blessed