Transformation based on a Single Condition Source data Task: if c is positive, then value should be a - b, else b - a. from datatable import dt, f,...
Link to Source data datatable docs Task: Get the difference between the maximum and minimum values per row for Value columns. from datatable import...
Link to Source data Task: Group data by Date and Zip and get the ratio of Price to maximum Price per group. from datatable import dt, f, update,...
Link to Source data Datatable docs ltype stypes from datatable import dt, f df = dt.Frame({'a': [1, 2, 1, 2, 1, 2], 'b': [True, False,...
Link to Source data Task: Create a new column by mapping the values in the city column to the city_state dictionary from datatable import dt,...
Source Data Datatable docs # import libraries from collections import defaultdict from datatable import dt, f df = dt.Frame({'sn': [1, 2, 3], ...