Skip to content

Commit

Permalink
Remove trailing column with nan values
Browse files Browse the repository at this point in the history
  • Loading branch information
uvchik committed Feb 3, 2021
1 parent c8b7987 commit 87e038c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reegis/energy_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_de_balance(year):
head = pd.read_csv(fn_h, header=[0]).columns

df = pd.read_excel(fn_de, "tj", index_col=[0], skiprows=6)
df.columns = head[1:]
df.dropna(thresh=50, axis=1, inplace=True)
return df


Expand Down

0 comments on commit 87e038c

Please sign in to comment.