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

[BUG] <smarteole example notebook 06 code cell 8 wd col name> #136

Open
1 task done
bkramak opened this issue Nov 21, 2023 · 1 comment
Open
1 task done

[BUG] <smarteole example notebook 06 code cell 8 wd col name> #136

bkramak opened this issue Nov 21, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bkramak
Copy link

bkramak commented Nov 21, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

in 06 example notebook in folder examples_smarteole, cell 8


AttributeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_11804\4103650034.py in ?()
1 # Limit the data to this region
----> 2 df_scada = df_scada[(df_scada.wd_smarteole > (start_of_offset - 20)) &
3 (df_scada.wd_smarteole < (end_of_offset + 20))]

c:\ProgramData\miniconda3\envs\flasc_tests\Lib\site-packages\pandas\core\generic.py in ?(self, name)
6200 and name not in self._accessors
MicrosoftTeams-image

6201 and self._info_axis._can_hold_identifiers_and_holds_name(name)
6202 ):
6203 return self[name]
-> 6204 return object.getattribute(self, name)

AttributeError: 'DataFrame' object has no attribute 'wd_smarteole'

copilot suggests the column name might have been changed to just 'wd' from 'wd_smarteole'

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- pip environment (can be retrieved with `pip list`):

Anything else?

No response

@paulf81
Copy link
Collaborator

paulf81 commented Nov 27, 2023

hi! I am sorry for this error. I'm actually not sure what is happening here but would like to help debug. The column wd_smarteole should have been added by the 02 notebook. As a first few things to try, would you mind to:

  1. Re-run the notebooks in order starting from 00 (or perhaps 02 is also fine) and confirm there are no errors until 06?
  2. If that is true, in the cell above the one which gives the error run this code:
for c in df_scada.columns:
    print(c)

And paste the results here? Thank you!

@paulf81 paulf81 added the bug Something isn't working label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants