I'm working with a dataframe. How come this filter function returns nothing, not even an error?
print(df.iloc[0,4])
==> a
def filter(x):
if x in ['a', 'b', 'c']:
print("yes")
var = df.iloc[0,4]
filter(var)
==> nothing
I'm working with a dataframe. How come this filter function returns nothing, not even an error?
print(df.iloc[0,4])
==> a
def filter(x):
if x in ['a', 'b', 'c']:
print("yes")
var = df.iloc[0,4]
filter(var)
==> nothing