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

Lesson 3 - data reclassification using Pysal #9

@muxevola

Description

@muxevola

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions