Closed federicoricca closed 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.
resolved by #161
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!