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

on new csv load #1

Open
sy-be opened this issue Dec 7, 2020 · 1 comment
Open

on new csv load #1

sy-be opened this issue Dec 7, 2020 · 1 comment

Comments

@sy-be
Copy link
Owner

sy-be commented Dec 7, 2020

  File "main.py", line 64, in on_calculate_clicked
    self.calculator.calculate()
  File "/home/sy/src/cgt-calculator/lib/calculator.py", line 16, in calculate
    for name, group in self.df.groupby('Product'):
  File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line 7884, in groupby
    return groupby(
  File "/usr/lib/python3/dist-packages/pandas/core/groupby/groupby.py", line 2522, in groupby
    return klass(obj, by, **kwds)
  File "/usr/lib/python3/dist-packages/pandas/core/groupby/groupby.py", line 384, in __init__
    grouper, exclusions, obj = _get_grouper(
  File "/usr/lib/python3/dist-packages/pandas/core/groupby/grouper.py", line 621, in _get_grouper
    raise KeyError(gpr)
KeyError: 'Product'
@sy-be
Copy link
Owner Author

sy-be commented Dec 7, 2020

works after relaunching

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