File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2833,7 +2833,7 @@ DataFrameTest >> testNumericalColumnNames [
28332833 #( Female 22 Spain 95 ) #( Male 24 Portugal 99 ) ).
28342834 dataFrame columnNames: #( Gender Age Country Score ) .
28352835
2836- expected := #( Age Score ) .
2836+ expected := #( Age Score ) asOrderedCollection .
28372837
28382838 self assert: dataFrame numericalColumnNames equals: expected
28392839]
Original file line number Diff line number Diff line change @@ -1431,7 +1431,8 @@ DataFrame >> numberOfRows [
14311431DataFrame >> numericalColumnNames [
14321432 " Returns the names of all numerical columns of the dataframe"
14331433
1434- ^ self numericalColumns collect: [ :column | column name ]
1434+ ^ self columnNames select: [ :columnName |
1435+ (self dataTypes at: columnName) includesBehavior: Number ]
14351436]
14361437
14371438{ #category : #accessing }
You can’t perform that action at this time.
0 commit comments