Shape of dataframe

why is the shape of the dataframe (5,4) even after dropping a column?

Hey @stutijain578, this is just because sir has not updated the value of df as :

df = df.drop(columns=["unnamed : 0"])
df .shape

If you execute the above code , then you would get shape of final dataframe as (5,3).

Hope this helps you clear your doubt !
Happy Learning :slight_smile:

1 Like