Population Decline in Segregated Neighborhoods
While some urban areas have gentrified, other areas are being abandoned. Does the racial makeup of a neighborhood affect population change? In this exercise you will plot population gain or loss between 1990 and 2010 (in percentage terms) against the percent African-American of each tract in 1990.
When you examine the histogram of percent population change, you will notice that a small number of tracts have increased by 200%, 500%, 1000% or more! These are generally new developments in very low populations tracts, and will make interpreting our next plot difficult, so you will filter them out before proceeding.
tracts_cook is still loaded for you. pandas and seaborn are loaded using the usual aliases.
Este ejercicio forma parte del curso
Analyzing US Census Data in Python
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Calculate percent population change 1990-2010
tracts_cook["pct_pop_change"] = ____
# Examine histogram of percent population change
sns.distplot(____, ____)
plt.show()