We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6074c03 commit 4d9c3b3Copy full SHA for 4d9c3b3
1 file changed
src/DataFrame/DataFrame.class.st
@@ -481,8 +481,8 @@ DataFrame >> collect: aBlock [
481
"Overrides the Collection>>collect to create DataFrame with the same number of columns as values in the first row"
482
| firstRow newDataFrame |
483
484
- firstRow := (self rowAt: 1) copy.
485
- newDataFrame := self class new: 0@(aBlock value: firstRow) size.
+ firstRow := aBlock value: (self rowAt: 1) copy.
+ newDataFrame := self class new: 0@firstRow size.
486
newDataFrame columnNames: firstRow keys.
487
488
self do: [:each | newDataFrame add: (aBlock value: each copy)].
0 commit comments