.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "checks_gallery/tabular/data_integrity/plot_percent_of_nulls.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_checks_gallery_tabular_data_integrity_plot_percent_of_nulls.py: .. _plot_percent_of_nulls: Percent Of Nulls **************** This page provides an overview for using the "Percent Of Nulls" check. **Structure:** * `Check Description <#check-description>`__ * `Run check <#run-the-check>`__ * `Define a condition <#define-a-condition>`__ Check Description ================= 'Percent Of Nulls' check calculates percent of 'null' values for each column of provided to it dataset and displays result as a bar chart. .. GENERATED FROM PYTHON SOURCE LINES 24-26 Run the Check ========= .. GENERATED FROM PYTHON SOURCE LINES 26-34 .. code-block:: default 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]}) result = PercentOfNulls().run(df) result.show() .. raw:: html
PercentOfNulls


.. GENERATED FROM PYTHON SOURCE LINES 35-37 Define a Condition ======================== .. GENERATED FROM PYTHON SOURCE LINES 37-41 .. code-block:: default 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() .. raw:: html
PercentOfNulls


.. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.170 seconds) .. _sphx_glr_download_checks_gallery_tabular_data_integrity_plot_percent_of_nulls.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_percent_of_nulls.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_percent_of_nulls.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_