Skip to content

Commit 671afed

Browse files
committed
formatting
1 parent 8ad1db0 commit 671afed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aperturedb/CSVParser.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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)} 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.")
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?")

0 commit comments

Comments
 (0)