Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

"KeyError: 0" for one one-record data frames #743

Closed
forman opened this issue Sep 13, 2018 · 0 comments
Closed

"KeyError: 0" for one one-record data frames #743

forman opened this issue Sep 13, 2018 · 0 comments
Assignees

Comments

@forman
Copy link
Member

forman commented Sep 13, 2018

Expected behavior

New feature introduced through #702 should work in all cases.

Actual behavior

When applying an operation that reduces an n-records datra frame to a one-record data frame, a KeyError: 0 is raised.

This is weird as this case is well unit-tested. From debugging, it seems to occur only on views of data frames.

Steps to reproduce the problem

  1. Use read_geo_data_frame to read some Shapefile
  2. Run operation data_frame_max to produce a one-record data frame.
  3. Receive the following error:

image

Specifications

Cate 2.0.dev17

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

No branches or pull requests

1 participant