Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Lesson 3 - data reclassification using Pysal #9

Open
muxevola opened this issue Jun 8, 2020 · 1 comment
Open

Lesson 3 - data reclassification using Pysal #9

muxevola opened this issue Jun 8, 2020 · 1 comment

Comments

@muxevola
Copy link

muxevola commented Jun 8, 2020

The below command:

classifier = ps.Natural_Breaks.make(k=n_classes)

Fails with the below error:

module 'pysal' has no attribute 'Natural_Breaks'

I had to use the following apporach instead (i.e. mapclassify instead of pysal):

import mapclassify as mc
classifier = mc.NaturalBreaks(y=acc[['pt_r_tt']], k=n_classes)
@VuokkoH
Copy link

VuokkoH commented Jun 9, 2020

Please note that this repository is an old version of the course. You can find most up-to-date materials under the site-repo (https://autogis.github.io/).

You can find this and other issues fixed in there :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants