DataFrame Encuentra filas nan
df[df.isnull().any(axis=1)]
Selfish Swiftlet
df[df.isnull().any(axis=1)]
# (1) Count NaN values under a single DataFrame column:
df['column name'].isna().sum()
#(2) Count NaN values under an entire DataFrame:
df.isna().sum().sum()
#(3) Count NaN values across a single DataFrame row:
df.loc[[index value]].isna().sum().sum()
# Count total missing values in a dataframe
df.isnull().sum().sum()
# Gives a integer value
df.isnull().values.any()
#Python, pandas
#Count missing values for each column of the dataframe df
df.isnull().sum()
In [5]: df = pd.DataFrame({'a':[1,2,np.nan], 'b':[np.nan,1,np.nan]})
In [6]: df.isna().sum()
Out[6]:
a 1
b 2
dtype: int64