Skip to content

Commit 4d9c3b3

Browse files
committed
Fixed DataFrame>>collect:
1 parent 6074c03 commit 4d9c3b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/DataFrame/DataFrame.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ DataFrame >> collect: aBlock [
481481
"Overrides the Collection>>collect to create DataFrame with the same number of columns as values in the first row"
482482
| firstRow newDataFrame |
483483

484-
firstRow := (self rowAt: 1) copy.
485-
newDataFrame := self class new: 0@(aBlock value: firstRow) size.
484+
firstRow := aBlock value: (self rowAt: 1) copy.
485+
newDataFrame := self class new: 0@firstRow size.
486486
newDataFrame columnNames: firstRow keys.
487487

488488
self do: [:each | newDataFrame add: (aBlock value: each copy)].

0 commit comments

Comments
 (0)