You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestions to Introduction to Data Exploration notebook #354
In "Exercise: Complete Happiness", if one runs the solution solution_clean_dataset without writing anything (only the return), it returns an AttributeError: 'NoneType' object has no attribute 'sort_values', without showing the solution.
In "Bonus Exercise Fixing a library" section, I found this path: ...modifying only the file data/plotly_intro/bubbly.py until the same code... Isnt it /data/data_exploration/bubbly.py?
In "Exercise: Complete Happiness" I do not think that the 1st question is very clear. I think the sentence "Do this by initializing a DataFrame with pd.DataFrame() with a list" is confusing. Could we explain this a bit better?
Also here we are asking to merge dataframes but actually explain the merge function below, in the 'Adding regional indicator' paragraph.
In 'Exercise: Final Happiness' we ask to Merge the cleaned_happiness_df with region_df on the 'Country name' and 'year' columns. However, region_df does not have a 'year' column and in fact the proposed solution only does a merge on 'Country name'
In "Bonus Exercise Fixing a library" section, I found this path: ...modifying only the file data/plotly_intro/bubbly.py until the same code... Isnt it /data/data_exploration/bubbly.py?
I am also a bit confused here. Which file are we pointing them too? tutorial/my_bubbly.py has 637 lines, it would be quite difficult for them to read though and identify the differences.
Activity
[-]Suggestions for the `Data Exploration notebok`[/-][+]Suggestions to `Introduction to Data Exploration` notebook[/+]fabioacl commentedon Mar 30, 2026
In the section "Finding the limits", the plot is showing float values for Years. Make them integer. Like using:
fabioacl commentedon Mar 30, 2026
In "Cleaning missing values" section, its presented that ffill() can be used for filling NaNs. We can also show present bfill() here.
fabioacl commentedon Mar 30, 2026
In "Exercise: Complete Happiness", if one runs the solution
solution_clean_datasetwithout writing anything (only thereturn), it returns anAttributeError: 'NoneType' object has no attribute 'sort_values', without showing the solution.fabioacl commentedon Mar 30, 2026
In "Making frames per year" section,
# time_column = 'year'is commented. Is this needed?fabioacl commentedon Mar 30, 2026
In solution
solution_frames_with_category, the marked for South Asia it very small (similar to Unknown), is it correct or bug?fabioacl commentedon Mar 30, 2026
In "Bonus Exercise Fixing a library" section, there is a typo: "and will through an error". Should be throw, right?
fabioacl commentedon Mar 30, 2026
In "Bonus Exercise Fixing a library" section, I found this path: ...modifying only the file data/plotly_intro/bubbly.py until the same code... Isnt it
/data/data_exploration/bubbly.py?despadam commentedon Mar 30, 2026
In "Exercise: Complete Happiness" I do not think that the 1st question is very clear. I think the sentence "Do this by initializing a DataFrame with pd.DataFrame() with a list" is confusing. Could we explain this a bit better?
Also here we are asking to merge dataframes but actually explain the merge function below, in the 'Adding regional indicator' paragraph.
despadam commentedon Mar 30, 2026
In 'Exercise: Final Happiness' we ask to Merge the cleaned_happiness_df with region_df on the 'Country name' and 'year' columns. However, region_df does not have a 'year' column and in fact the proposed solution only does a merge on 'Country name'
despadam commentedon Mar 30, 2026
Same in 'Plotting basic scatter plot'
despadam commentedon Mar 30, 2026
I am also a bit confused here. Which file are we pointing them too?
tutorial/my_bubbly.pyhas 637 lines, it would be quite difficult for them to read though and identify the differences.despadam commentedon Mar 30, 2026
I have created this branch: https://github.com/empa-scientific-it/python-tutorial/tree/fix%2F354-data-exploration
where I have fixed some typos and added some suggestions to make the text more comprehensible.
Snowwpanda commentedon Apr 15, 2026
The new exercise explore_dataset needs some refinement:
idxmaxis used and not mentioned in the list of panda functionsSnowwpanda commentedon Apr 15, 2026
Building frames by function: this one is confusing because only one frame is displayed, no animation yet. So maybe lets add a play button:
just to see the difference
Also there is a get_scatter_figure... used every so often, there should be a comment, that this is boilerplate for the figure