0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

データセットの欠損値を把握する関数

Last updated at Posted at 2019-04-27

備忘録

データセットの欠損値を把握する関数を作りました
df.isnull().sum()でも求められますが、大きなデータセットの場合、全てのカラムが表示されなかったため、作りました

コード

grasp_lack.py
def grasp_lack(df):
    for column in df.columns:
        lack = df[column].isnull().sum()
        print(column,":",lack)
>>> カラム名:欠損値数
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?