Search code examples
pythonmatplotlibdata-visualization

How to coax `missingno` nullity plot to show only selected columns


The nullity plot, generated with missingno, of my data looks like this:

enter image description here

but I don't need to display the first 10 columns (no to uv_bottom). Is there any way to get missingno to show only select columns, aside from manually cropping the image?

The advanced configuration described in the docs doesn't mention it.


Solution

  • If you have a data frame df, with the above data, then to display from 11 column, you can use the below code

    ax = missingno.matrix(df[list(df)[10:]])