small fix

This commit is contained in:
iuvbio 2019-01-30 23:34:45 +01:00 committed by GitHub
parent 086da20966
commit 7274646c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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