{"id":7409,"library":"missingno","title":"Missingno","description":"Missingno is a Python library, version 0.5.2, designed for visualizing missing data in datasets. It offers a small toolset of flexible and easy-to-use visualizations including matrix, bar, heatmap, and dendrogram plots, allowing users to quickly gain a visual summary of data completeness. It is actively maintained with recent releases addressing compatibility and adding features.","status":"active","version":"0.5.2","language":"en","source_language":"en","source_url":"https://github.com/ResidentMario/missingno","tags":["data visualization","missing data","exploratory data analysis","EDA","pandas"],"install":[{"cmd":"pip install missingno","lang":"bash","label":"Install stable version"}],"dependencies":[{"reason":"Required for DataFrame manipulation and data structures.","package":"pandas","optional":false},{"reason":"Required for generating all visualizations.","package":"matplotlib","optional":false},{"reason":"Optional dependency for certain geospatial plotting functionalities, although the 'geoplot' method was removed in v0.5.0.","package":"geopandas","optional":true},{"reason":"Optional dependency for certain geospatial plotting functionalities, though the 'geoplot' method was removed in v0.5.0.","package":"geoplot","optional":true},{"reason":"Optional dependency, typically used with geopandas for geometric operations.","package":"shapely","optional":true}],"imports":[{"symbol":"missingno","correct":"import missingno as msno"},{"symbol":"pandas","correct":"import pandas as pd"},{"symbol":"numpy","correct":"import numpy as np"}],"quickstart":{"code":"import pandas as pd\nimport numpy as np\nimport missingno as msno\nimport matplotlib.pyplot as plt\n\n# Create a sample DataFrame with missing values\ndata = {\n    'A': [1, 2, np.nan, 4, 5],\n    'B': [np.nan, 2, 3, 4, np.nan],\n    'C': [1, 2, 3, np.nan, 5],\n    'D': [1, 2, 3, 4, 5]\n}\ndf = pd.DataFrame(data)\n\nprint(\"DataFrame with missing values:\")\nprint(df)\nprint(\"\\nMissingno Matrix Visualization:\")\n\n# Generate a missingness matrix plot\nmsno.matrix(df, figsize=(8, 4))\nplt.title('Missing Data Matrix')\nplt.show()\n\nprint(\"\\nMissingno Bar Chart Visualization:\")\n# Generate a bar chart of missingness\nmsno.bar(df, figsize=(8, 4))\nplt.title('Missing Data Bar Chart')\nplt.show()","lang":"python","description":"This quickstart demonstrates how to create a Pandas DataFrame with simulated missing values and then visualize them using `missingno.matrix` and `missingno.bar`. The matrix plot provides a visual summary of missing data patterns, while the bar chart shows the count of non-null values per column."},"warnings":[{"fix":"Remove calls to `msno.geoplot()` and the `inline` parameter. For geospatial analysis, consider using `geopandas` directly or an alternative visualization.","message":"The `geoplot` method and the `inline` parameter for visualizations were removed in `missingno` version 0.5.0. Code relying on these will break.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Review `missingno` documentation for current `sort` parameter usage. If specifically using `dendrogram`, remove the `sort` parameter as it's no longer supported.","message":"The `sort` parameter's behavior changed significantly and was removed from `dendrogram` and `geoplot` in version 0.4.2. Using it in older ways for these plots will not work as expected or raise errors in newer versions.","severity":"deprecated","affected_versions":">=0.4.2"},{"fix":"Upgrade `missingno` to version 0.5.2 or later: `pip install --upgrade missingno`.","message":"Older versions of `missingno` (prior to 0.5.2) may experience compatibility issues with newer versions of `matplotlib`, leading to visual glitches or errors.","severity":"gotcha","affected_versions":"<0.5.2"},{"fix":"Avoid using the `sparkline` parameter when passing an `ax` object to `msno.matrix`.","message":"When using the `ax` parameter to plot `msno.matrix` onto a `matplotlib.axes.Axes` object, the `sparkline` parameter is not supported and will be ignored or cause issues.","severity":"gotcha","affected_versions":">=0.4.2"},{"fix":"Ensure your data is a Pandas DataFrame before passing it to `missingno` functions.","message":"Missingno is primarily designed to work with Pandas DataFrames. Attempting to use it directly with other data structures (e.g., raw NumPy arrays or lists) will require conversion to a DataFrame first.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-16T00:00:00.000Z","next_check":"2026-07-15T00:00:00.000Z","problems":[{"fix":"Remove the call to `msno.geoplot()`. For geospatial data, use a dedicated library like `geopandas`.","cause":"The `geoplot` method was removed in `missingno` version 0.5.0.","error":"AttributeError: module 'missingno' has no attribute 'geoplot'"},{"fix":"Remove the `inline=True` or `inline=False` argument from your `missingno` function calls.","cause":"The `inline` parameter was removed from `missingno` visualization functions in version 0.5.0.","error":"TypeError: matrix() got an unexpected keyword argument 'inline'"},{"fix":"Check the documentation for the specific `missingno` plot function. For `dendrogram`, remove the `sort` parameter entirely. For `bar`, ensure your `sort` parameter aligns with current valid options (e.g., 'ascending', 'descending').","cause":"The `sort` parameter's functionality and acceptance for certain plot types like `dendrogram` (and implicitly `bar` in older contexts) changed or was removed in `missingno` version 0.4.2.","error":"TypeError: bar() got an unexpected keyword argument 'sort'"},{"fix":"Ensure the plot function name is correct (e.g., `msno.matrix()`, `msno.bar()`, `msno.heatmap()`, `msno.dendrogram()`). The library does not have a generic `plot_nullity` function with a `kind` argument.","cause":"Attempting to call a non-existent or misspelled plot kind, possibly from older documentation or misremembered functionality.","error":"ValueError: Invalid 'kind' argument for plot_nullity. Must be one of ['matrix', 'bar', 'heatmap', 'dendrogram']."}]}