pysal / segregation

Segregation Measurement, Inferential Statistics, and Decomposition Analysis
https://pysal.org/segregation/
BSD 3-Clause "New" or "Revised" License
111 stars 26 forks source link

Dissimilarity Index API typo #167

Closed federicoricca closed 3 years ago

federicoricca commented 3 years ago

In the API page for aspatial.Dissim (here) there is a typo in the column names of the example. The tractable dataframe should retain 'nhblk10' rather than 'tractid', namely:

df = census_2010.loc[census_2010.county == "Riverside County"][['pop10','nhblk10']]

and similarly afterwards:

dissim_index = Dissim(df, 'nhblk10', 'pop10')

Hope this helps!

renanxcortes commented 3 years ago

In the API page for aspatial.Dissim (here) there is a typo in the column names of the example. The tractable dataframe should retain 'nhblk10' rather than 'tractid', namely:

df = census_2010.loc[census_2010.county == "Riverside County"][['pop10','nhblk10']]

and similarly afterwards:

dissim_index = Dissim(df, 'nhblk10', 'pop10')

Hope this helps!

Thanks for pointing that out! Indeed, this typo happens in the documentation of other indexes too.

knaaptime commented 3 years ago

resolved by #161