I’m confused on Tasks 12 and 13 from https://www.codecademy.com/courses/getting-started-with-python-for-data-science/projects/analyze-electric-vehicle-stations-with-python
12. While we can’t be sure that this trend continues, it certainly looks as if publicly-owned (government/utility) stations are less common than privately owned (which we saw in Task 6).
Let’s compare privately- and publicly-owned stations. Create a Boolean mask that is True
for each row of public_electric
where owner
is private.
I thought that public_electric already filtered out all stations with ‘owner’ /= ‘public’, since it included the Boolean mask of is_public. Why would I use the public_electric Boolean mask to find where ‘owner’ is ‘private’?