We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc48214 commit 5eeb23eCopy full SHA for 5eeb23e
1 file changed
src/danfojs-base/aggregators/groupby.ts
@@ -198,11 +198,13 @@ export default class Groupby {
198
else {
199
if(Array.isArray(operation[colName])) {
200
for(let ops of operation[colName]) {
201
- colVal[colName] = this.groupMathLog(keyVal[colName],ops)
+ let colName2 = `${colName}_${ops}`
202
+ colVal[colName2] = this.groupMathLog(keyVal[colName],ops)
203
}
204
} else {
205
let ops: string = operation[colName] as string
- colVal[colName] = this.groupMathLog(keyVal[colName], ops)
206
207
+ colVal[colName2] = this.groupMathLog(keyVal[colName], ops)
208
209
210
0 commit comments