.. 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_special_chars.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_special_chars.py: Special Characters ****************** .. GENERATED FROM PYTHON SOURCE LINES 8-13 .. code-block:: default import pandas as pd from deepchecks.tabular.checks import SpecialCharacters .. GENERATED FROM PYTHON SOURCE LINES 14-34 .. code-block:: default data = {'col1': [' ', '!', '"', '#', '$', '%', '&', '\'','(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', ']', '\\', '^', '_', '`', '{', '}', '|', '~', '\n'], 'col2':['v', 'v', 'v', 'v4', 'v5', 'v6', 'v7', 'v8','v9','v10', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', ']', '\\', '^', '_', '`', '{', '}', '|', '~', '\n'], 'col3': [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,1,'???#',1,1,1,1,1,1,1,1,1,1,1], 'col4': [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,1,1,1,1,1,1,1,1,1,1,1,1,1], 'col5': ['valid1','valid2','valid3','valid4','valid5','valid6','valid7', 'valid8','valid9','valid10','valid11','valid12', 'valid13','valid14','inval!d15','valid16','valid17','valid18', 'valid19','valid20','valid21','valid22','valid23','valid24','valid25', 'valid26', 'valid27','valid28','valid29','valid30','valid31','32','33','34']} dataframe = pd.DataFrame(data=data) SpecialCharacters().run(dataframe) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none /home/runner/work/deepchecks/deepchecks/deepchecks/tabular/dataset.py:886: UserWarning: Received a "pandas.DataFrame" instance. It is recommended to pass a "deepchecks.tabular.Dataset" instance by doing "Dataset(dataframe)" /home/runner/work/deepchecks/deepchecks/deepchecks/tabular/dataset.py:581: UserWarning: It is recommended to initialize Dataset with categorical features by doing "Dataset(df, cat_features=categorical_list)". No categorical features were passed, therefore heuristically inferring categorical features in the data. 0 categorical features were inferred .. raw:: html
Special Characters


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