@@ -559,14 +559,9 @@ define([
559
559
content . appendLine ( '<table><colgroup><col width="80px"><col width="*"></colgroup>' ) ;
560
560
content . appendLine ( '<tr><th><label>column</label></th>' ) ;
561
561
content . appendFormatLine ( '<td>{0}</td></tr>' , this . renderColumnList ( this . state . columnList ) ) ;
562
- content . appendLine ( '<tr><th><label>lambda x:</label></th>' ) ;
563
- var suggestInput = new vpSuggestInputText . vpSuggestInputText ( ) ;
564
- suggestInput . setComponentID ( 'vp_popupAddApply' ) ;
565
- suggestInput . addClass ( 'vp-input vp-popup-apply-lambda' ) ;
566
- suggestInput . setSuggestList ( function ( ) { return [ 'x' ] ; } ) ;
567
- suggestInput . setValue ( 'x' ) ;
568
- suggestInput . setNormalFilter ( false ) ;
569
- content . appendFormatLine ( '<td>{0}</td>' , suggestInput . toTagString ( ) ) ;
562
+ content . appendLine ( '<tr><th><label>function</label></th>' ) ;
563
+ content . appendFormatLine ( '<td><input type="text" id="{0}" class="{1}" placeholder="{2}"/></td>'
564
+ , 'vp_popupAddApply' , 'vp-input vp-popup-apply-lambda' , 'Type code manually' ) ;
570
565
content . appendLine ( '</tr></table>' ) ;
571
566
content . appendLine ( '</div>' ) ; // end of vp-popup-tab apply
572
567
content . appendLine ( '</div>' ) ; // end of vp-popup-addpage
@@ -1084,7 +1079,7 @@ define([
1084
1079
}
1085
1080
code . append ( ')' ) ;
1086
1081
} else if ( tab == 'apply' ) {
1087
- code . appendFormat ( "{0}[{1}] = {2}[{3}].apply(lambda x: {4})" , tempObj , name , tempObj , content . column , content . apply ) ;
1082
+ code . appendFormat ( "{0}[{1}] = {2}[{3}].apply({4})" , tempObj , name , tempObj , content . column , content . apply ) ;
1088
1083
}
1089
1084
break ;
1090
1085
case FRAME_EDIT_TYPE . ADD_ROW :
0 commit comments