toad.preprocessing.partition module¶
- class toad.preprocessing.partition.TimePartition(base, filter, times)[source]¶
Bases:
Partitionpartition 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'])