It always says method is not defined and that df is not defined when I imported it. Can somebody please help [enter image description here](https://i.stack.imgur.com/dmCNb.jpg)
I tried resetting it and resetting keras but it still won't work
CodePudding user response:
you should first run the block where you define it then you can use it in other blocks
CodePudding user response:
You first need to re-run the cell above the last one whenever you reset the notebook / refresh the kernel so it re-imports the Sequential function.
- Rerun the cell that contains:
'From tensorflow.keras.model import Sequential'
to re-import the function from the tensorflow.keras.model module.
- and then the cell that is failing.