datatableton
datatableton copied to clipboard
Include an exercise for qcut()
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])
We can combine qcut
and cut
into a single exercise. But let's wait till v1.1.0
of datatable is released.