Comments (3)
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.
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.
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)
- Randomize button HOT 1
- Extend prettymapp docs HOT 1
- Addresses HOT 1
- Unable to change colors in python package HOT 1
- Error running app HOT 4
- Converting elements to geometries can be very slow HOT 4
- Peach style having different zorders than the other styles HOT 3
- Website down HOT 2
- Error running app. If this keeps happening, please contact support. HOT 2
- https://prettymapp.streamlit.app/ HOT 4
- License? HOT 2
- Page won't load
- Seems to be broken HOT 2
- Demo not working - error page HOT 2
- A wonderful work๏ผ can I get a map without tag on the bottem right? HOT 4
- Fx_Map(Idea) HOT 1
- Radius slider lacks units HOT 1
- feature req: Plot from an osm file HOT 9
- Potential performance issue: Unreliable performance of .loc in pandas 2.0.3 HOT 1
- Error on submit HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettymapp.