Abdul Hatmani
Abdul Hatmani

Reputation: 23

Visualization of missing records in DataFrame

Visualization of missing records in DataFrame

I have a lot of missing dataframe records.

df.isnull().sum()

The problem is that these deficiencies are connected and I don't know how to see them. Because I do not want to mess up so as to spoil data. What are your ways to see the structure of the missing dataframe?

Upvotes: 2

Views: 517

Answers (2)

Wojciech Moszczyński
Wojciech Moszczyński

Reputation: 3187

You ca use such plot of concentration

import seaborn as sns

sns.heatmap(df.isnull(),yticklabels=False,cbar=False,cmap='viridis')

enter image description here

Upvotes: 1

Nandan Rana
Nandan Rana

Reputation: 539

Use df.info(). It will give you non null record count in each column.

Upvotes: 0

Related Questions