health-data-science-OR / coding-for-ml

Learning materials for Coding for Machine Learning and Data Science
https://www.pythonhealthdatascience.com
MIT License
15 stars 4 forks source link

Working with pd.df solution exercise 5 #40

Closed amyheather closed 2 years ago

amyheather commented 2 years ago

https://www.pythonhealthdatascience.com/content/02_stat_prog/04_solutions/00_dataframes.html Exercise 5 Solution includes extra line at end repeating the code from the hint given in the question (but not one of the tasks). Repeated:

remember to use () around the criteria and use & for 'and'

sw_imaging[(sw_imaging['org_code'] == 'RK9') & (sw_imaging['imaging_type'] == 'Diagnostic Ultrasonography')] Thanks, Amy.

TomMonks commented 2 years ago

Thanks. This has been fixed in the dev branch and will be merged in the next update.