Open-EO / Open-EO/openeo-python-client

UDFs: apply_timeseries: receives numpy array instead of pandas series as documented

Open
#341 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug documentation UDF
Dominant language
Python
Stars
217
Forks
56
Avg merge
1d 22h
Merged PRs (30d)
2

Description

from https://github.com/openEOPlatform/architecture-docs/issues/280

UDF like this

from pandas import Series

def apply_timeseries(series: Series, context: dict) -> Series:
	return series.rolling(5).mean()

does not receive a pandas series (as documented), but numpy array:

[...] line 4, in apply_timeseries\nAttributeError: 'numpy.ndarray' object has no attribute 'rolling'\n

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

The issue names apply_timeseries and the documented pandas Series contract, but no source file or test. Start by locating the UDF execution path and reproducing the rolling example; done when the received input matches the documented type and a regression check covers it.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.