Skip to content

Commit

Permalink
Deprecate #normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Apr 7, 2023
1 parent 52efca3 commit 8116241
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DataFrame/DataFrame.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1360,11 +1360,11 @@ DataFrame >> normalized [
"This methods returns a new DataFrame, without altering this one, that has all the columns normalized."

| normalizers normalizedColumns |
normalizers := (1 to: self anyOne size) collect: [ :e | self class defaultNormalizerClass new ].
self deprecated:
'DataFrame will remove the dependency over normalization in the next version. You can use pharo-ai/data-preprocessing project to normalize your DataFrame and even more!'.
normalizers := (1 to: self anyOne size) collect: [ :e | self class defaultNormalizerClass new ].

normalizedColumns := self columns
with: normalizers
collect: [ :col :normalizer | col normalizedUsing: normalizer ].
normalizedColumns := self columns with: normalizers collect: [ :col :normalizer | col normalizedUsing: normalizer ].

^ self class withColumns: normalizedColumns columnNames: self columnNames
]
Expand Down

0 comments on commit 8116241

Please sign in to comment.