Having error while working with Dataframe

see if this discussion is helpful:

ok, but i execute the same code given by Mr.Prathyush.

If the code is exactly same as done in the videos, most likely your version of underlying panda library might be different (more recent) from the panda version(several month old) used in the videos.

You will just need to fix the code appropriately some of the ideas mentioned in that thread earlier might help)