Python Forum
pandas filter not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pandas filter not working
#1
I am trying to filter some info eg Name from a table and print it, but seems like my code is not working.
followed eg in  http://pbpython.com/excel-pandas-comp-2.html and still not working.

import pandas as pd
import numpy as np
all_dataB = pd.DataFrame()
dfB= pd.read_excel("C:\File2.xlsx")
dfB[dfB["BoardName"]=='Alex*']
all_dataB = dfB
print(dfB)#check
Reply


Messages In This Thread
pandas filter not working - by issac_n - Dec-28-2017, 11:20 AM
RE: pandas filter not working - by Larz60+ - Dec-28-2017, 11:58 AM
RE: pandas filter not working - by issac_n - Dec-29-2017, 03:06 AM
RE: pandas filter not working - by issac_n - Jan-03-2018, 12:52 AM
RE: pandas filter not working - by Larz60+ - Jan-03-2018, 01:39 AM
RE: pandas filter not working - by issac_n - Jan-03-2018, 09:28 AM
RE: pandas filter not working - by issac_n - Jan-08-2018, 10:17 AM
RE: pandas filter not working - by Larz60+ - Jan-08-2018, 11:28 AM
RE: pandas filter not working - by issac_n - Jan-09-2018, 01:13 AM
RE: pandas filter not working - by Larz60+ - Jan-09-2018, 03:51 AM
RE: pandas filter not working - by issac_n - Jan-11-2018, 08:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pandas replace function not working on datafram with floats bcrypto 1 3,926 Apr-12-2021, 08:59 PM
Last Post: bcrypto
  Python Custom Module not working in Jupyter Notebook with Pandas fid 0 2,357 Jul-04-2020, 11:05 AM
Last Post: fid
  Pandas + Groupby + Filter unique values JosepMaria 1 3,334 Jun-15-2020, 08:15 AM
Last Post: JosepMaria
  Pandas DF filter base on another DF Johnse 1 2,569 Sep-06-2019, 03:41 PM
Last Post: ThomasL
  import pandas as pd not working in pclinuxos loren41 3 2,910 May-19-2019, 03:49 PM
Last Post: Larz60+
  Working with date indexes (pandas) dervast 0 2,217 Apr-05-2019, 01:29 PM
Last Post: dervast

Forum Jump:

User Panel Messages

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