File tree 2 files changed +17
-12
lines changed
2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ 'srcDirectory' : 'src'
3
+ }
Original file line number Diff line number Diff line change @@ -769,22 +769,24 @@ DataFrame >> select: colNames where: aBlock groupBy: aColName aggregate: selecto
769
769
770
770
{ #category : #enumerating }
771
771
DataFrame >> select: aBlock with: testedColumnNames [
772
-
773
772
| blockStr |
774
773
blockStr := aBlock asString.
775
-
774
+
776
775
" Remove parameters: '[ :x | x > 3 ]' to '[ x > 3 ]'"
777
- blockStr := ( blockStr
776
+ blockStr := blockStr
778
777
copyFrom: (blockStr findString: ' |' )
779
- to: blockStr size).
780
-
781
- testedColumnNames do: [ :eachColName |
782
- blockStr := blockStr
783
- copyReplaceAll: eachColName
784
- with: (' (row atKey: #' , eachColName, ' )' ) ].
785
-
786
- blockStr := ' [ :row ' , blockStr.
787
- ^ self select: (Compiler evaluate: blockStr)
778
+ to: blockStr size.
779
+ testedColumnNames
780
+ do: [ :eachColName |
781
+ blockStr := blockStr
782
+ copyReplaceAll: eachColName
783
+ with: ' (row atKey: #' , eachColName , ' )' ].
784
+ blockStr := ' [ :row ' , blockStr.
785
+ ^ self
786
+ select:
787
+ (OpalCompiler new
788
+ source: blockStr;
789
+ evaluate)
788
790
]
789
791
790
792
{ #category : #queries }
You can’t perform that action at this time.
0 commit comments