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 2b388e3 commit a54f618Copy full SHA for a54f618
1 file changed
danfojs-node/src/core/frame.js
@@ -1110,7 +1110,10 @@ export class DataFrame extends Ndframe {
1110
let column_names = this.column_names;
1111
let col_dict = {};
1112
let key_column = null;
1113
-
+ let col_index = col.map((val) => column_names.indexOf(val));
1114
+ let col_dtype = this.dtypes.filter((val, index) => {
1115
+ return col_index.includes(index);
1116
+ });
1117
if (col.length == 2) {
1118
if (column_names.includes(col[0])) {
1119
// eslint-disable-next-line no-unused-vars
@@ -1172,7 +1175,8 @@ export class DataFrame extends Ndframe {
1172
1175
col_dict,
1173
1176
key_column,
1174
1177
this.values,
- column_names
1178
+ column_names,
1179
+ col_dtype
1180
).group();
1181
1182
return groups;
0 commit comments