File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,9 @@ def __init__(self,
7979        # we expect the df index to have 'start', which means RangeIndex. 
8080        # most users don't supply their own df, so this is mostly a sanity check 
8181        # for when an advanced user has done filtering and have a IntervalIndex. 
82-         if  not  isinstance (self .df .index ,pd .RangeIndex ):
83-             raise  Exception (f"CSVParser requires a RangeIndex. the supplied DataFrame has a { type (self .df .index )}  )
82+         if  not  isinstance (self .df .index , pd .RangeIndex ):
83+             raise  Exception (
84+                 f"CSVParser requires a RangeIndex. the supplied DataFrame has a { type (self .df .index )}  )
8485        # len for dask dataframe needs a client. 
8586        if  not  self .use_dask  and  len (self .df ) ==  0 :
8687            logger .error ("Dataframe empty. Is the CSV file ok?" )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments