I have a question about the Variance in Weather exercise. I am looking at Step 8.
We want to filter by the
"month"column! The following line of code will create a variable that gets the temperature from the rows where
6. These will be all of the rows from the month of June.
june = london_data.loc[london_data["month"] == 6]["TemperatureC"]
What is the role of .loc here?
I tried running the following code
june = london_data[london_data[“month”] == 6][“TemperatureC”]
And the result looks exactly the same.