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,
79
79
# we expect the df index to have 'start', which means RangeIndex.
80
80
# most users don't supply their own df, so this is mostly a sanity check
81
81
# 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 )} 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 )} index." )
84
85
# len for dask dataframe needs a client.
85
86
if not self .use_dask and len (self .df ) == 0 :
86
87
logger .error ("Dataframe empty. Is the CSV file ok?" )
You can’t perform that action at this time.
0 commit comments