I have a pandas dataframe with a table I have parsed from a URL:
dfs = pd.read_html('https://pythonprogramming.net/parsememcparseface/', header = 0)
for df in dfs:
print(df)
I have isolated a particular column called Internet Points
:
df1 = df['Internet Points']
I'd like to filter search this column for Internet Points > 1000
. I've tried:
if df1 > 10000:
print(df1)
However, I get an error:
ValueError: The truth value of a Series is ambiguous. Use a.empty
, a.bool()
, a.item()
, a.any()
or a.all()
.