I have dataframe in which I have to drop row if some of values.
for instance,
x not in ['N/A', ''] where x is columns
is there a way like, apply?
df[x] = df[x].apply(lambda x: x.lower())
I am think in something like:
df.drop.apply(lambda x: X not in ['N/A', ''])???
My DF
F T l
0 0 "0" "0"
1 1 "" "1"
2 2 "2" ""
drop row if T == "" or l == ""
F T l
0 0 "0" "0"
I could not use
df.drop(df.T == "") since the condition ("") depend on runtime data