Python Forum
How to Filter a Dataframe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Filter a Dataframe
#3
Hi,

I tried your code:
data = data[data['S_ID'] != '[]']
But I still get the whole dataset, not filtered

Output:
Active ... S_ID 6 True ... [] 7 True ... [] 8 True ... [] 9 True ... [] 11 True ... [S345678] 12 True ... [S567456] 13 True ... [S789077] 14 True ... [S123456] 16 True ... [] 17 True ... [] 18 True ... []
Reply


Messages In This Thread
How to Filter a Dataframe - by mfkzolo - Nov-13-2020, 12:59 PM
RE: How to Filter a Dataframe - by aajkaal - Nov-14-2020, 12:37 AM
RE: How to Filter a Dataframe - by mfkzolo - Nov-16-2020, 05:14 AM
RE: How to Filter a Dataframe - by mfkzolo - Nov-16-2020, 05:31 AM
RE: How to Filter a Dataframe - by sandeep_ganga - Nov-20-2020, 02:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Filter data based on a value from another dataframe column and create a file using lo pawanmtm 1 4,315 Jul-15-2020, 06:20 PM
Last Post: pawanmtm
  Filter value from DataFrame apply a function and save to xlsx zinho 1 2,053 Dec-22-2019, 03:54 PM
Last Post: zinho

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020