@@ -559,14 +559,9 @@ define([
559559content . appendLine ( '<table><colgroup><col width="80px"><col width="*"></colgroup>' ) ;
560560content . appendLine ( '<tr><th><label>column</label></th>' ) ;
561561content . 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' ) ;
570565content . appendLine ( '</tr></table>' ) ;
571566content . appendLine ( '</div>' ) ; // end of vp-popup-tab apply
572567content . appendLine ( '</div>' ) ; // end of vp-popup-addpage
@@ -1084,7 +1079,7 @@ define([
10841079}
10851080code . append ( ')' ) ;
10861081} 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 ) ;
10881083}
10891084break ;
10901085case FRAME_EDIT_TYPE . ADD_ROW :