Git Product home page Git Product logo

Comments (3)

BlakeatFrasers avatar BlakeatFrasers commented on August 29, 2024 1

Thanks for the quick reply @chrieke

osmnx seems to be causing the issue. This was fixed by re-installing the package. The version re-installed was 1.2.2, if this helps.

Cheers Blake

from prettymapp.

chrieke avatar chrieke commented on August 29, 2024

Hi @BlakeatFrasers not sure about this, seems to related to pandas / geopandas dataframe. Could you check your osmnx / pandas / geopandas installation? What happens if you print aoi & df variables?

from prettymapp.

filipmnowak avatar filipmnowak commented on August 29, 2024

fresh installation:

Traceback (most recent call last):
  File "/home/fmn/.data/workshop/prettymap/run.py", line 7, in <module>
    df = get_osm_geometries(aoi=aoi)
  File "/home/fmn/.data/workshop/prettymap/venv/lib/python3.10/site-packages/prettymapp/osm.py", line 22, in get_osm_geometries
    df = df.droplevel(level=0)
  File "/home/fmn/.data/workshop/prettymap/venv/lib/python3.10/site-packages/pandas/core/generic.py", line 919, in droplevel
    new_labels = labels.droplevel(level)
  File "/home/fmn/.data/workshop/prettymap/venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 2183, in droplevel
    return self._drop_level_numbers(levnums)
  File "/home/fmn/.data/workshop/prettymap/venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 2194, in _drop_level_numbers
    raise ValueError(
ValueError: Cannot remove 1 levels from an index with 1 levels: at least one level must be left.

from prettymapp.

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.