import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from seaborn import color_palette
df = pd.DataFrame(range(1, 11)).sample(100, replace=True)
table = pd.crosstab(index=df.values.flatten(), colnames=['질병'], columns='도수')
table.index = ["감염", "심장", "호흡기", "소화기", "신경", "근골격", "내분비", "정신", "피부", "기타"]
print(table)질병 도수
감염 8
심장 8
호흡기 9
소화기 10
신경 9
근골격 16
내분비 6
정신 14
피부 11
기타 9


