The count() function helps count the total non-NA values in the DataFrame:
sales_df_na
The following is the output:
DataFrame with NA
The count method can be applied as shown here:
sales_df_na.count()
The following is the output:
count() result
The count() function has the axis, level, and numeric_only parameters, just like several other functions we discussed previously.