Skip to content

Commit 90d64be

Browse files
authored
Exercise 2: skip_footer changed to skipfooter
FutureWarning: the 'skip_footer' keyword is deprecated, use 'skipfooter' instead after removing the cwd from sys.path.
1 parent 1222276 commit 90d64be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: week_2/day_6_exercise_solution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def load_iris():
3636
def load_energy():
3737
"""Loads the energy file, skipping all useless information and returns it as a dataframe"""
3838
energy = pd.read_excel("Energy Indicators.xls", skiprows=17, header=0,
39-
skip_footer=53-15, na_values="...", usecols=[2,3,4,5])
39+
skipfooter=53-15, na_values="...", usecols=[2,3,4,5])
4040
# Rename columns
4141
energy.columns = ["Country", "Energy Supply [Petajoules]", "Energy Supply per Capita [Gigajoules]", "% Renewable"]
4242

0 commit comments

Comments
 (0)