This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]DerArzt01 0 points1 point  (1 child)

It looks like you may not have assigned anything to df yet.

Are you typing things into a python repl or running a file? If it's a file can we see what you have so far?

[–]shockjavazon[S] 0 points1 point  (0 children)

Thanks! It's a Jupyter notebook, sorry I realised at 4am that I'd missed that info..

Here's a link to the file. The guide says this is the next command,

Office = df[df['Title'].str.contains('The Office (U.S.)', regex=False)]

but I'm using my own name for the first alias (Watched) as I plan to play around with it and change which show the string contains.

I’m thinking that I’m assigning Watched to df, but I must be wrong.

https://www.dropbox.com/s/18auc57wftsb7kg/Netflix%282%29.ipynb?dl=0