Home > front end >  How do I put all the rows that don't have a certain value into a dataframe?(jupyter notebook/go
How do I put all the rows that don't have a certain value into a dataframe?(jupyter notebook/go

Time:06-25

under ileads_address I'm trying to create a DF that only prints out all the rows that don't have 0.0. Is there anyway to code that?

I tried doing this

df5 = df4[~df4['ileads_address'] == 0]

Sample CSV File

CodePudding user response:

Try this

df4[df4['ileads_address'] != 0]
  • Related