def date_feature(**kwargs): feature = { "name": "date_" + random_string(), "type": "date", "preprocessing": {"datetime_format": random.choice(list(DATETIME_FORMATS.keys()))}, } feature.update(kwargs) feature[COLUMN] = feature[NAME] feature[PROC_COLUMN] = compute_feature_hash(feature) return feature
def date_feature(**kwargs): feature = { 'name': 'date_' + random_string(), 'type': 'date', 'preprocessing': { 'datetime_format': random.choice(list(DATETIME_FORMATS.keys())) } } feature.update(kwargs) return feature
def date_feature(**kwargs): feature = { 'name': 'date_' + random_string(), 'type': 'date', 'preprocessing': { 'datetime_format': random.choice(list(DATETIME_FORMATS.keys())) } } feature.update(kwargs) feature[COLUMN] = feature[NAME] feature[PROC_COLUMN] = compute_feature_hash(feature) return feature