implicit `set_geometry`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- data-visualization, testing
Research direction
The warning comes from adding a 'geometry' column to a GeoDataFrame that has no active geometry set. Start at climada/util/test/test_plot.py around lines 208 and 231, where the GeoDataFrame is built and the column is added, and check the geopandas call site the warning points to. Run the test_plot module and confirm the FutureWarning no longer appears, which means the active geometry column is now set explicitly, for example with set_geometry('geometry') or by passing geometry to the constructor.
Written by the indexing model from the issue text.
Description
FutureWarning
You are adding a column named 'geometry' to a GeoDataFrame constructed without an active geometry column. Currently, this automatically sets the active geometry column to 'geometry' but in the future that will no longer happen. Instead, either provide geometry to the GeoDataFrame constructor (GeoDataFrame(... geometry=GeoSeries()) or use set_geometry('geometry') to explicitly set the active geometry column.
Occurrences
- climada.util.test.test_plot:208
- climada.util.test.test_plot:231
- geopandas.geodataframe:255
(6 times during tests)
- Dominant language
- Jupyter Notebook
- Stars
- 478
- Forks
- 166
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CLIMADA-project/climada_python
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CLIMADA-project/climada_python#1337 ·
-
Downloaded file names keep the URL query string, invalid on WindowsPossibly taken @scks1 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
CLIMADA-project/climada_python#1336 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CLIMADA-project/climada_python#1332 · 4 comments · 1 reaction ·
-
warnings
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CLIMADA-project/climada_python#1241 ·
-
ResourceWarningOpenwarnings
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CLIMADA-project/climada_python#1239 ·
All issues in CLIMADA-project/climada_python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Jupiterp-UMD/Jupiterp#969 ·
Maintainers usually reply within 1 day
-
SVO with an SVO csv as input raises TypeError at the wordcloudPossibly taken @coralynnkc claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 6 days
-
fixed in dev
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
umami-software/umami#4715 · 1 comment ·
Maintainers usually reply within 2 days
-
flow-measurement measurement
Difficulty 1/5 Under an hour Newbie friendliness 72/100
MichaelYcJo/SpecSeal#1176 · 10 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
microsoft/flint-chart#156 ·
Maintainers usually reply within 1 day