Skip to content

Instantly share code, notes, and snippets.

  • Save sannykhan3777/f16be5be68689164fb78600fef660267 to your computer and use it in GitHub Desktop.
Save sannykhan3777/f16be5be68689164fb78600fef660267 to your computer and use it in GitHub Desktop.
data-manipulation-with-pandas/transforming-data/exercise
# 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment