Screen Link:
Working With Missing Data | Dataquest
I understand the rationale of list comprehension and I understand that df.columns will give the name of columns.
My query is on this part “…if “killed” in col”. The word “killed” is not the name of any column. The word “killed” is used with one other word and an underscore. So the query, is how will the word “killed” match with the name of columns i.e. pedestrian_killed or cyclist killed ?