Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working imports in examples #202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ a specific group with columns like `"hi_income"`, `"med_income"` and `"low_incom
bracket, and a total column called `"total_population"`. A typical call would be something like this:

```python
from segregation.aspatial import Dissim
from segregation.singlegroup import Dissim
d_index = Dissim(df, "hi_income", "total_population")
```

Expand All @@ -105,7 +105,7 @@ If a user would want to fit a *spatial* dissimilarity index (SD), the call would
identical, save for the fact that the `DataFrame` now needs to be a `GeoDataFrame` with an appropriate `geometry` column

```python
from segregation.spatial import SpatialDissim
from segregation.singlegroup import SpatialDissim
spatial_index = SpatialDissim(gdf, "hi_income", "total_population")
```

Expand Down Expand Up @@ -161,7 +161,7 @@ column names rather than a single string;
reprising the income segregation example above, an example call might look like this

```python
from segregation.aspatial import MultiDissim
from segregation.multigroup import MultiDissim
index = MultiDissim(df, ['hi_income', 'med_income', 'low_income'])
```

Expand Down