How do you filter empty cells in a column in a form of
blank = ''
df = df[(df['Remarks']== blank)]
please give me suggestion in the given form because i want to add multiple conditions using & or |. I tried this and the output was an error.
How do you filter empty cells in a column in a form of
blank = ''
df = df[(df['Remarks']== blank)]
please give me suggestion in the given form because i want to add multiple conditions using & or |. I tried this and the output was an error.
I dont know what type of data you have, as you havent posted anything here. But may be you need to convert your columns to string using str and then do comparision try this
blank = ''
df = df[(df['Remarks'].str == blank)]
It could be that your columns aren't actually blank, but are nan/null.
Try the following;
df = df[df['Remarks'].isnull()]
I've removed the parenthesis from your example because you don't need to enclose a single conditional, only when you are passing multiple conditions, as such;
df = df[(df['Remarks']isnull()) & (df['Remarks'] == 'Some Value')]