diff --git a/src/common/vpGroupby.js b/src/common/vpGroupby.js
index d909e303..b2884ac0 100644
--- a/src/common/vpGroupby.js
+++ b/src/common/vpGroupby.js
@@ -437,6 +437,9 @@ define([
page.appendFormatLine('', '', 'Select method type');
page.appendFormatLine('', 'typing', 'Typing');
this.methodList.forEach(method => {
+ if (method.value == '') {
+ return;
+ }
page.appendFormatLine('', method.value, method.label);
});
page.appendLine('');
@@ -1196,7 +1199,7 @@ define([
}
}
- if (method != '') {
+ if (method != '' || advanced) {
// when using as_index option with Grouper, use .reset_index()
if (useGrouper && resetIndex) {
methodStr.append('.reset_index()');