Note
Go to the end to download the full example code
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()
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()
Total running time of the script: (0 minutes 0.119 seconds)