File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -852,6 +852,18 @@ DataFrame >> crossTabulate: colName1 with: colName2 [
852852 ^ col1 crossTabulateWith: col2
853853]
854854
855+ { #category : #copying }
856+ DataFrame >> dataPreProcessingEncodeWith: anEncoder [
857+ " This method is here to speed up pharo-ai/data-preprocessing algos without coupling both projects."
858+
859+ | copy |
860+ copy := self copy.
861+ self columns doWithIndex: [ :dataSerie :columnIndex |
862+ dataSerie doWithIndex: [ :element :rowIndex | copy at: rowIndex at: columnIndex put: ((anEncoder categories at: columnIndex) indexOf: element) ] ].
863+
864+ ^ copy
865+ ]
866+
855867{ #category : #' data-types' }
856868DataFrame >> dataTypeOfColumn: aColumnName [
857869 " 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