I have a dataframe with columns age, date and location.
I would like to count how many rows are empty across ALL columns (not some but all in the same time). I have the following code, each line works independently, but how do I say
age AND date AND locationisnull?df['age'].isnull().sum() df['date'].isnull().sum() df['location'].isnull().sum()I would like to return a dataframe after removing the rows with missing values in ALL these three columns, so something like the following lines but combined in one statement:
df.mask(row['location'].isnull()) df[np.isfinite(df['age'])] df[np.isfinite(df['date'])]