NameError: name 'df' is not defined

i’m copying the code exactly as this link but i changed the dataset to my own. It’s saying the df is not defined, but they didn’t define it when they organized their dataset, but it worked on their behalf. I’m confused where the error came from.

Post the code as preformatted text using the </> button please.
Do not post pictures if text.

1 Like

The code shown in the error message screen shot does not match the code shown on Kaggle.

Either the Kaggle code has changed, or your code, or both.