I have a data set that looks like this:
string_1,score,group
"sdfsd",0.546,0.5
"sdfsd",0.53,0.5
"sdfsd",0.52,0.5
"dgfbx",0.43,0.4
"dsgfgsd",0.48,0.4
"dsgfgsd",0.42,0.4
"dsgfgsd",0.84,0.8
"dsgfgsd",0.83,0.8
"dsgfgsd",0.82,0.8
And I want to take a sample from each group. meaning - I want to take random 2 rows from each group of values: 0.4,0.5,0.8 (group fields)
What is the simplest way to do it?
Thanks