Skip to content

Commit 1f75e3a

Browse files
authored
Merge pull request #199 from jecisc/speed-up-asArray
Speedup #asArray by delegating to the DataFrameInternal
2 parents 8c4afd9 + 5d3d177 commit 1f75e3a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/DataFrame/DataFrame.class.st

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,7 @@ DataFrame >> asArrayOfColumns [
467467
DataFrame >> asArrayOfRows [
468468
"Converts DataFrame to the array of rows"
469469

470-
^ (1 to: self numberOfRows) collect: [ :i |
471-
(self at: i) asArray ]
470+
^ contents asArrayOfRows
472471
]
473472

474473
{ #category : #converting }

0 commit comments

Comments
 (0)