small fix
This commit is contained in:
parent
086da20966
commit
7274646c8a
|
|
@ -18,7 +18,7 @@ def sanitize_df(df):
|
||||||
for i in range(rows):
|
for i in range(rows):
|
||||||
row = df.iloc[-1]
|
row = df.iloc[-1]
|
||||||
if row.isnull().all():
|
if row.isnull().all():
|
||||||
df = df.iloc[:-2]
|
df = df.iloc[:-1] # TODO: verifiy that the range is not inclusive
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
# Delete empty columns
|
# Delete empty columns
|
||||||
|
|
@ -27,5 +27,5 @@ def sanitize_df(df):
|
||||||
if not df[column].isnull().all():
|
if not df[column].isnull().all():
|
||||||
cols.append(column)
|
cols.append(column)
|
||||||
df = df[cols]
|
df = df[cols]
|
||||||
len(df.columns)
|
# len(df.columns)
|
||||||
return df
|
return df
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue