File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -995,22 +995,6 @@ DataFrame >> crossTabulate: colName1 with: colName2 [
995995 ^ col1 crossTabulateWith: col2
996996]
997997
998- { #category : ' copying' }
999- DataFrame >> dataPreProcessingEncodeWith: anEncoder [
1000- " This method is here to speed up pharo-ai/data-preprocessing algos without coupling both projects."
1001-
1002- | copy cache |
1003- copy := self copy.
1004- cache := IdentityDictionary new .
1005- self columns doWithIndex: [ :dataSerie :columnIndex |
1006- | category |
1007- category := cache at: columnIndex ifAbsentPut: [ ((anEncoder categories at: columnIndex) collectWithIndex: [ :elem :index | elem - > index ]) asDictionary ].
1008- dataSerie doWithIndex: [ :element :rowIndex |
1009- copy at: rowIndex at: columnIndex put: (category at: element ifAbsent: [ AIMissingCategory signalFor: element ]) ] ].
1010-
1011- ^ copy
1012- ]
1013-
1014998{ #category : ' data-types' }
1015999DataFrame >> dataTypeOfColumn: aColumnName [
10161000 " Given a column name of the DataFrame, it returns the data type of that column"
You can’t perform that action at this time.
0 commit comments