Math, asked by Siyakashyap5942, 1 year ago

pandas get sample datafram containing each class equal numbers

Answers

Answered by TheRose
0
How can I sample a pandas dataframe or graphlab sframe based on a given class\label distribution values eg: I want to sample an data frame having a label\class column to select rows such that each class label is equally fetched thereby having a similar frequency for each class label corresponding to a uniform distribution of class labels . Or best would be to get samples according to the class distribution we want.
Similar questions