Apr-27-2020, 12:15 PM
# The Mojave Desert states canu = ["California", "Arizona", "Nevada", "Utah"] import pandas as pd # Filter for rows in the Mojave Desert states mojave_homelessness = homelessness['state'["California", "Arizona", "Nevada", "Utah"]].isin(canu) # See the result print(mojave_homelessness)
Error:(Track Back Most Recent Call Last)
File "<stdin>", Line 5, in <module>
mojave_homelessness = homelessness['state'["California", "Arizona", "Nevada", "Utah"]].isin(canu)
Type Error: String indices must be integers
I am trying to : Filter homelessness for cases where the USA census state is in the list of Mojave states, canu, assigning to mojave_homelessnessThank you for the attention. Learning the language and the methods for using this site. Thanks again...