datacarpentry / python-ecology-lesson

Data Analysis and Visualization in Python for Ecologists
https://datacarpentry.org/python-ecology-lesson
Other
160 stars 310 forks source link

EP 05 Coding typo #512

Open LibrarianEllie opened 2 years ago

LibrarianEllie commented 2 years ago

In episode 05- Combining DataFrames with Pandas, on the section about Identifying join keys, the Python code asks us to call species_sub.columns this should probably be species_df.columns, as we did not create a species_sub in the lesson. Then in the next block of code in Inner Joins: merged_inner = pd.merge(left=survey_sub, right=species_sub, left_on='species_id', right_on='species_id') the inner join won't work ask expected unless species_sub is changed to species_df.

btovar commented 1 year ago

@LibrarianEllie, thank you for your report! species_sub is created in the previous subsection, "Joining Two DataFrames". Does that seem ok to you?