Skip to content

Commit

Permalink
update Scaler transform function (fit_transform => transform)
Browse files Browse the repository at this point in the history
  • Loading branch information
stewu5 committed Sep 5, 2021
1 parent e58c4c0 commit a2b36ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xenonpy/datatools/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def transform(self, x):

x_ = x
for s in self._scalers:
x_ = s.fit_transform(x_)
x_ = s.transform(x_)

if isinstance(x, pd.DataFrame):
return pd.DataFrame(x_, index=x.index, columns=x.columns)
Expand Down

0 comments on commit a2b36ec

Please sign in to comment.