datatableton icon indicating copy to clipboard operation
datatableton copied to clipboard

Include an exercise for qcut()

Open shrinidhin opened this issue 2 years ago • 1 comments

Describe Topic Include an exercise to implement the qcut() function in datatables which is a function for binning columns

Suggested Set It can possibly be included in Set 5: Column Aggregations

Sample Exercise Exercise : Create a new column B in frame data which contains deciles of column A Solution : data['B'] = dt.qcut([dt.f.A])

shrinidhin avatar Jul 28 '21 06:07 shrinidhin

We can combine qcut and cut into a single exercise. But let's wait till v1.1.0 of datatable is released.

vopani avatar Jul 28 '21 06:07 vopani