Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook failes in the Jupyterlab CDSE production deployment #78

Open
3 tasks
Pratichhya opened this issue Nov 20, 2024 · 1 comment
Open
3 tasks

Notebook failes in the Jupyterlab CDSE production deployment #78

Pratichhya opened this issue Nov 20, 2024 · 1 comment
Assignees

Comments

@Pratichhya
Copy link
Contributor

Pratichhya commented Nov 20, 2024

When updating the Jupyterlab for the CDSE environment and it was noticed that one of the notebooks fails in production, this one openeo/NDVI_Timeseries.ipynb.

There are also some samples that are failing in the automated testing pipeline like UDP.ipynb and UDF.ipynb.

  • NDVI timeseries
  • UDF
  • UDP
@Pratichhya Pratichhya self-assigned this Nov 20, 2024
@Pratichhya
Copy link
Contributor Author

Failures:
https://github.com/eu-cdse/notebook-samples/actions/runs/11138803498/job/30954386763
https://github.com/eu-cdse/notebook-samples/actions/runs/11892183211/job/33134496082

KeyError Traceback (most recent call last)Cell In[10], line 1----> 1 plot_timeseries("ndvi-results/timeseries-basic.csv")Cell In[9], line 6, in plot_timeseries(filename, figsize) 3 df.index = pd.to_datetime(df.index) 5 fig, ax = plt.subplots(figsize=figsize, dpi=90)----> 6 df.groupby("feature_index")["avg(band_0)"].plot(marker="o", ax=ax) 7 ax.set_title(filename.split("/")[-1]) 8 ax.set_ylabel("NDVI")File /opt/conda/envs/openeo/lib/python3.11/site-packages/pandas/core/groupby/generic.py:1951, in DataFrameGroupBy.__getitem__(self, key) 1944 if isinstance(key, tuple) and len(key) > 1: 1945 # if len == 1, then it becomes a SeriesGroupBy and this is actually 1946 # valid syntax, so don't raise 1947 raise ValueError( 1948 "Cannot subset columns with a tuple with more than one element. " 1949 "Use a list instead." 1950 )-> 1951 return super().__getitem__(key)File /opt/conda/envs/openeo/lib/python3.11/site-packages/pandas/core/base.py:244, in SelectionMixin.__getitem__(self, key) 242 else: 243 if key not in self.obj:--> 244 raise KeyError(f"Column not found: {key}") 245 ndim = self.obj[key].ndim 246 return self._gotitem(key, ndim=ndim)KeyError: 'Column not found: avg(band_0)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant