Skip to content

Tag: pandas

python qcut method to bin scores

I want to bin scores from df[‘SCORES’] into 4 bins in a new column called df[‘Remark’] as accomplished the code below (right most column in table below). However, using the qcut method, this distributes these scores evenly in 1/4 intervals (we specify this in the code below) That being…