python-ecology-lesson icon indicating copy to clipboard operation
python-ecology-lesson copied to clipboard

EP 05 Coding typo

Open LibrarianEllie opened this issue 3 years ago • 1 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 avatar Jul 06 '22 16:07 LibrarianEllie

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

btovar avatar May 15 '23 12:05 btovar