Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34476c6

Browse files
committed
fix(KDP): edited the docs
1 parent d387826 commit 34476c6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/features.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,16 @@ You can even process string encoded date features (format: 'YYYY-MM-DD' or 'YYYY
232232

233233
features_specs = {
234234
"feat1": DateFeature(
235-
name="feat2",
236-
feature_type=FeatureType.FLOAT,
235+
name="feat1",
236+
feature_type=FeatureType.DATE,
237237
),
238-
"feat2": TextFeature(
238+
"feat2": DateFeature(
239239
name="feat2",
240240
feature_type=FeatureType.DATE,
241+
date_format="%Y-%m-%d", # date format of the input data
242+
output_format="year", # output format of the feature
241243
# additional option to add season layer:
242-
add_season=True, # adds one-hot season indicator (summer, winter, etc) defaults to False
244+
add_season=True, # adds one-hot season indicator (summer, winter, autumn or spring) defaults to False
243245
),
244246
...
245247
}

0 commit comments

Comments
 (0)