We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8881637 + d3766b7 commit 3451016Copy full SHA for 3451016
1 file changed
src/DataFrame/DataFrame.class.st
@@ -852,6 +852,18 @@ DataFrame >> crossTabulate: colName1 with: colName2 [
852
^ col1 crossTabulateWith: col2
853
]
854
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
867
{ #category : #'data-types' }
868
DataFrame >> dataTypeOfColumn: aColumnName [
869
"Given a column name of the DataFrame, it returns the data type of that column"
0 commit comments