Percent Of Nulls#

This notebook provides an overview for using the Percent Of Nulls check.

Structure:

What is Percent Of Nulls#

The PercentOfNulls check calculates percent of null values for each column and displays the result as a bar chart.

Generate data#

import numpy as np
import pandas as pd
from deepchecks.tabular.checks.data_integrity import PercentOfNulls

df = pd.DataFrame({'foo': [1, 2, None, np.nan], 'bar': [None, 1, 2, 3]})

Run the Check#

result = PercentOfNulls().run(df)
result.show()
PercentOfNulls


Define a Condition#

df = pd.DataFrame({'foo': [1, 2, None, np.nan], 'bar': [None, 1, 2, 3]})
check = PercentOfNulls().add_condition_percent_of_nulls_not_greater_than()
result = check.run(df)
result.show()
PercentOfNulls


Total running time of the script: ( 0 minutes 0.172 seconds)

Gallery generated by Sphinx-Gallery