flasc icon indicating copy to clipboard operation
flasc copied to clipboard

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

Open bkramak opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] 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

bkramak avatar Nov 21 '23 16:11 bkramak

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 avatar Nov 27 '23 20:11 paulf81