toad.preprocessing.partition module¶
-
class
toad.preprocessing.partition.
TimePartition
(base, filter, times)[source]¶ Bases:
toad.preprocessing.partition.Partition
partition data by time delta
Parameters: - base (str) – column name of base time
- filter (str) – column name of target time to be compared
- times (list) – list of time delta`
Example:
>>> TimePartition('apply_time', 'query_time', ['30d', '90d', 'all'])
-
class
toad.preprocessing.partition.
ValuePartition
(column)[source]¶ Bases:
toad.preprocessing.partition.Partition
partition data by column values
Parameters: column (str) – column name which will be used as partition Example:
>>> ValuePartition('status')