This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The Mojave Desert states | |
canu = ["California", "Arizona", "Nevada", "Utah"] | |
# Filter for rows in the Mojave Desert states | |
mojave_homelessness =homelessness[homelessness["state"].isin(canu)] | |
# See the result | |
print(mojave_homelessness) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Subset for rows in South Atlantic or Mid-Atlantic regions | |
south_mid_atlantic = homelessness [(homelessness["region"]=="South Atlantic") | (homelessness["region"]=="Mid-Atlantic")] | |
# See the result | |
print(south_mid_atlantic) |