Skip to content

Commit

Permalink
Update overview.rst (#394)
Browse files Browse the repository at this point in the history
change `encoder = Onehot(cols=["Gender"])` to `encoder = OneHot(cols=["Gender"])` on line 64
  • Loading branch information
Lfan-ke committed Feb 28, 2024
1 parent beccead commit fa1f6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/modules/transform/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Alternatively, one can also call the combined ``fit_transform`` to achieve the s
data = TSDataset.load_from_csv("/path/to/data.csv")
# 2 init the onehot encoder transform instance.
encoder = Onehot(cols=["Gender"])
encoder = OneHot(cols=["Gender"])
# 3 fit + transform simultaneously
transformed_data = encoder.fit_transform(dataset=data)

0 comments on commit fa1f6b2

Please sign in to comment.