Drop Rows in Pandas Python by Condition | Delete Rows in Python Pandas Dataframe | Learn Python

preview_player
Показать описание
Easy steps to drop rows in Python with pre defined condition. Step by step explanation of dropping rows in Panda Dataframe when conditions are pre defined.

Visit here for more details, to download the code for further practice you can drop us a message or put a comment on our website as well:

Follow us for more articles and updates:

Рекомендации по теме
Комментарии
Автор

I use this code on my table and it gives me this error: TypeError: 'NoneType' object is not subscriptable

my table has a column call Volume that have this numbers on some of their rows 0.0 and i want to delete them.

this is my code: index_def = df[df['Volume']==0.0].index

Do you know what's happening? thank you very much

alexisgraff