I have a df like so:
A B C
f s x
a b c
n
p l k
i
s j p
Now, I want to remove all the records that have the value in column A but are empty on the rest of df's columns, how can I achieve such a thing? The expected result would be a df like:
A B C
f s x
a b c
p l k
s j p
@EDIT: this solved the case for me:
columns = list(df.columns)[1:]
df = df[~df[columns].isnull().all(1)]