I have to delete row if in the same line i have id1 and id2 are empty. I did these lines but got error.
d = {'id1': ['Y22', 'X23', None], 'id2': ['Y10', "Y14", None], 'id3':[77,22,13]}
df = pd.DataFrame(data=d)
df = df[df[pd.notnull(df['id1'])and df[pd.notnull(df['id2'])]]
df[~(df['id1'].isna() & df['id2'].isna())]