@@ -247,7 +247,7 @@ def _fr_helper_ ( frame , expressions , cuts = '' , progress = False ) :
247247 exprs , cuts , input_string = SV .vars_and_cuts ( expressions , cuts )
248248
249249 ## Frame/Tree ?
250- lenght = - 1
250+ length = - 1
251251
252252 if isinstance ( frame , ROOT .TTree ) : node , length = DataFrame ( frame ) , len ( frame )
253253 elif isinstance ( frame , frame_types ) : node = frame
@@ -261,12 +261,12 @@ def _fr_helper_ ( frame , expressions , cuts = '' , progress = False ) :
261261
262262 ## progress ?
263263 if progress is False : pass
264- elif progress is True and 0 < lenght :
264+ elif progress is True and 0 < length :
265265 current , cnt = frame_progress ( current , length )
266266 elif isinstance ( progress , integer_types ) and 1 < progress :
267267 current , cnt = frame_progress ( current , progress )
268268 elif progress :
269- current , cnt = frame_progress ( current , lenght )
269+ current , cnt = frame_progress ( current , length )
270270
271271 vnames = ordered_dict ()
272272 added = ordered_dict ()
@@ -375,14 +375,14 @@ def _fr_new_init_ ( self , *args , **kwargs ) :
375375 self ._fr_old_init_ ( * args , ** kwargs )
376376
377377 if progress and args :
378- lenght = - 1
379- if isinstance ( args [ 0 ] , integer_types ) and 1 < args [ 0 ] : lenght = args [ 0 ]
380- elif isinstance ( args [ 0 ] , ROOT .TTree ) : lenght = len ( args [ 0 ] )
381- elif isinstance ( progress , integer_types ) and 1 < progress : lenght = progress
382- _ , _ = frame_progress ( self , lenght )
378+ length = - 1
379+ if isinstance ( args [ 0 ] , integer_types ) and 1 < args [ 0 ] : length = args [ 0 ]
380+ elif isinstance ( args [ 0 ] , ROOT .TTree ) : length = len ( args [ 0 ] )
381+ elif isinstance ( progress , integer_types ) and 1 < progress : length = progress
382+ _ , _ = frame_progress ( self , length )
383383 elif progress and isinstance ( progress , integer_types ) and 1 < progress :
384384 length = progress
385- _ , _ = frame_progress ( self , lenght )
385+ _ , _ = frame_progress ( self , length )
386386
387387if not hasattr ( DataFrame , '_fr_old_init_' ) :
388388 DataFrame ._fr_old_init_ = DataFrame .__init__
0 commit comments