Open-EO / Open-EO/openeo-python-driver

`DriverVectorCube.from_geojson` incompatible with pandas 3 (just released)

Open
#459 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

technical debt
Dominant language
Python
Stars
12
Forks
8
Avg merge
6d 3h
Merged PRs (30d)
4

Description

import pandas
import openeo_driver.datacube

print(pandas.__version__)
# 3.0.0

geometries = {
    'type': 'Feature',
    'geometry': {'type': 'Point', 'coordinates': [66, 52]},
    'properties': {'row_index': 1, 'description': 'foo'}
}
openeo_driver.datacube.DriverVectorCube.from_geojson(
    geometries
)
#  Cannot interpret '<StringDtype(na_value=nan)>' as a data type

snippet works with pandas<3.0.0

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by running the reported pandas 3.0.0 reproduction and inspect DriverVectorCube.from_geojson in openeo_driver.datacube. Trace the handling of the GeoJSON properties and verify the same input works with pandas 3 while remaining compatible with older versions; done means the reported StringDtype error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.