Skip to content

Commit 8116241

Browse files
committed
Deprecate #normalized
1 parent 52efca3 commit 8116241

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DataFrame/DataFrame.class.st

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,11 +1360,11 @@ DataFrame >> normalized [
13601360
"This methods returns a new DataFrame, without altering this one, that has all the columns normalized."
13611361

13621362
| normalizers normalizedColumns |
1363-
normalizers := (1 to: self anyOne size) collect: [ :e | self class defaultNormalizerClass new ].
1363+
self deprecated:
1364+
'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!'.
1365+
normalizers := (1 to: self anyOne size) collect: [ :e | self class defaultNormalizerClass new ].
13641366

1365-
normalizedColumns := self columns
1366-
with: normalizers
1367-
collect: [ :col :normalizer | col normalizedUsing: normalizer ].
1367+
normalizedColumns := self columns with: normalizers collect: [ :col :normalizer | col normalizedUsing: normalizer ].
13681368

13691369
^ self class withColumns: normalizedColumns columnNames: self columnNames
13701370
]

0 commit comments

Comments
 (0)