GithubHelp home page GithubHelp logo

Comments (7)

jtmiclat avatar jtmiclat commented on June 8, 2024

This error stems from us not supporting multiindex GeoDataFrames and dissolving generating a multiindex GeoDataFrame

Converting the following

aoi = idn[idn.ADM2_EN == "Subang"].dissolve(by="ADM2_EN")

to

aoi = idn[idn.ADM2_EN == "Subang"]

works.

from geowrangler.

jtmiclat avatar jtmiclat commented on June 8, 2024

Alternatively, you can pass as_index as False and this doesn't generate a MultiIndex GeoDataFrame

aoi = idn[idn.ADM2_EN == "Subang"].dissolve(by="ADM2_EN", as_index=False)

from geowrangler.

jtmiclat avatar jtmiclat commented on June 8, 2024

@butchtm @alronlam Should we support multiindex geodataframes or should we throw an assertion error telling users that we dont support it?

from geowrangler.

butchtm avatar butchtm commented on June 8, 2024

@jtmiclat @alronlam

For now, we could do a quick fix to throw an assertion error so users are aware we don't support multi-index for now.

Then file an enhancement request to support multi-indexes separately later. cc @tm-kah-alforja

from geowrangler.

alronlam avatar alronlam commented on June 8, 2024

Ahh I see. Agree with @butchtm I think we can just throw an assertion error for now so it's clear what the error is and how to fix it. I'm not really sure either if multi-index support is something that's necessary.

from geowrangler.

jtmiclat avatar jtmiclat commented on June 8, 2024

Alright, i can take this on.

from geowrangler.

butchtm avatar butchtm commented on June 8, 2024

Reopening this. Still reproducible error when I tried today. See this updated gist.

from geowrangler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.