2
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 1 year has passed since last update.

EDAの初手にやるべきこと集

Posted at

これは何か

EDAする時に自分が初手によくやっていることをまとめる。今、雑にまとめたいだけなのだが、追々ちゃんと整理する。

事前準備

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib.style as style
style.use('fivethirtyeight')
import seaborn as sns
import os

全体概観

欠損値確認

print(train.isnull().sum())
print(f'train data: {len(train)}')

要約統計量の確認

train.describe()

単変量解析

histgram

sns.distplot(train['col_name'], bins=100, kde=False)
plt.show()

棒グラフ

value_counts = train['col_name'].value_counts()
value_counts.name = 'col_name count'
sns.countplot(value_counts)
plt.show()

多変量解析

追記予定

2
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
2
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?