Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

implicit `set_geometry`

Open Beginner friendly
#1,226 0 comments 0 reactions 0 assignees View on GitHub

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

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

warnings

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CLIMADA-project/climada_python

All issues in CLIMADA-project/climada_python

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.