Skip to content

Commit

Permalink
Fix WLDataFrame __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsebgosselin committed Mar 2, 2022
1 parent de46459 commit b5c5bad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gwhat/projet/reader_waterlvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@

class WLDataFrame(pd.DataFrame):
def __init__(self, data: list = None, columns: list = None):
super().__init__(data=[], columns=COLUMNS, index=[INDEX])
super().__init__(data=[], columns=COLUMNS)
self.set_index([INDEX], drop=True, inplace=True)

if data is not None and columns is not None:
df = pd.DataFrame(data, columns=columns)
Expand Down Expand Up @@ -143,8 +144,6 @@ def open_water_level_datafile(filename):
sheet.iter_rows(min_col=1, values_only=True)]
finally:
workbook.close()
print(data)

return data


Expand Down

0 comments on commit b5c5bad

Please sign in to comment.