datacarpentry / python-ecology-lesson

Data Analysis and Visualization in Python for Ecologists

Home Page:https://datacarpentry.org/python-ecology-lesson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EP 05 Coding typo

LibrarianEllie opened this issue · comments

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.

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