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

KeyError: 'Minutes' #1268

Closed
sentry-io bot opened this issue Mar 31, 2022 · 0 comments
Closed

KeyError: 'Minutes' #1268

sentry-io bot opened this issue Mar 31, 2022 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 31, 2022

Sentry Issue: GOAT-API-G1

KeyError: 'Minutes'
  File "pandas/core/indexes/base.py", line 3621, in get_loc
    return self._engine.get_loc(casted_key)
  File "pandas/_libs/index.pyx", line 136, in pandas._libs.index.IndexEngine.get_loc
    cpdef get_loc(self, object val):
  File "pandas/_libs/index.pyx", line 163, in pandas._libs.index.IndexEngine.get_loc
    return self.mapping.get_item(val)
  File "pandas/_libs/hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas/_libs/hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item

KeyError: 'Minutes'
(9 additional frame(s) were not displayed)
...
  File "src/endpoints/v1/isochrones.py", line 180, in export_isochrones
    file_response = await crud.isochrone.export_isochrone(
  File "src/crud/crud_isochrone.py", line 471, in export_isochrone
    gdf_transposed.columns = [str(c) +  ' ' + translation_dict["minutes"] for c in list(gdf["Minutes"])]
  File "geopandas/geodataframe.py", line 1327, in __getitem__
    result = super().__getitem__(key)
  File "pandas/core/frame.py", line 3506, in __getitem__
    indexer = self.columns.get_loc(key)
  File "pandas/core/indexes/base.py", line 3623, in get_loc
    raise KeyError(key) from err
@majkshkurti majkshkurti assigned EPajares and unassigned EPajares and majkshkurti Apr 9, 2022
EPajares added a commit that referenced this issue Apr 19, 2022
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

2 participants