출처 : https://www.kaggle.com/datasets/shivamb/netflix-shows
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings('ignore')
import missingno as msno
import koreanize_matplotlib
# csv file reading
data = pd.read_csv("https://raw.githubusercontent.com/prasertcbs/basic-dataset/master/netflix_titles.csv",sep=",")
data.head()
컬럼 설명
data.info()

# 결측치 확인
data.isnull().sum()

결측치 시각화
msno.bar 를 사용예정
msno.bar(data)

결측치를 시각화 할 수 있다
범주형 데이터 확인
data.describe(include="object")

수치형 데이터 확인
data.describe(include="int")

describe 그냥 써도 되는데 기호에따라 include 옵션을 쓰는게 중요하다 print문으로 마무리 total_elements = data.shape[0] * data.shape[1]
missing_count = data.isnull().sum().sum()
missing_ratio = (missing_count / total_elements) * 100
print(f"전체 데이터 수 : {total_elements}")
print(f"결측치 수 : {missing_count}")
print(f"전체 데이터 내 결측치 비율 : {missing_ratio:.2f}%")
print(f"범주형 데이터 수 : {data.select_dtypes(include='object').shape[1]}")
print(f"수치형 데이터 수 : {data.select_dtypes(include='number').shape[1]}")
