Closed ZacksAmber closed 2 years ago
file path
The solution file 5_combining_data-solution.ipynb from /lessons/ETLPipelines/5_combinedata_exercise/ has bugs.
5_combining_data-solution.ipynb
/lessons/ETLPipelines/5_combinedata_exercise/
The following two value_name are wrong.
value_name
df_rural_melt = pd.melt(df_rural,\ id_vars=['Country Name', 'Country Code', 'Indicator Name', 'Indicator Code'],\ var_name = 'Year', value_name='Electricity_Value') df_electricity_melt = pd.melt(df_electricity,\ id_vars=['Country Name', 'Country Code', 'Indicator Name', 'Indicator Code'],\ var_name='Year', value_name='Rural_Value')
They should be:
df_rural_melt = pd.melt(df_rural,\ id_vars=['Country Name', 'Country Code', 'Indicator Name', 'Indicator Code'],\ var_name = 'Year', value_name='Rural_Value') df_electricity_melt = pd.melt(df_electricity,\ id_vars=['Country Name', 'Country Code', 'Indicator Name', 'Indicator Code'],\ var_name='Year', value_name='Electricity_Value')
I checked the notebook and the .csv files and I can confirm they're wrong, good catch. Just sent a PR.
Thanks for reporting the bug issue.
The solution file
5_combining_data-solution.ipynb
from/lessons/ETLPipelines/5_combinedata_exercise/
has bugs.The following two
value_name
are wrong.They should be: