I have a dataframe that has a different number of types and I want to create a subset where each type has an equal probability of being selected. For example say I have something like this
Now say I want to create a new dataframe of length 10 such that each type has an equal probability of being selected. How would I do this in Python? I was trying to follow this here but didn't get far.