-
2022-02-25<Kaggle>/[Costa Rican Household Poverty Level] 2022. 2. 25. 21:28728x90
list vs np.array
(list(Counter(list).values())) == 1 # False
np.array(list(Counter(list).values())) == 1 # array([ True, True, True, True, True, True, True, True])
list == 1np.array == 1 -> [1, 1, 1, 1](1) pd.DataFrame.iterrows() : 행에 대해 순환 반복
(Iterate over DataFrame rows as (index, Series) pairs.)(2) pd.DataFrame.iteritems() : 열에 대해 순환 반복
(Iterate over DataFrame (column name, Series) pairs.)
# np.argmax : 최소값,최대값 인덱스 위치sns.violinplot(x = 'warning', y = 'Target', data = df)피어슨 vs 스피어만 상관계수from scipy.stats import spearmanrpcr = np.corrcoef(x, y)[0, 1]spr = spearmanr(x, y).correlation728x90'<Kaggle> > [Costa Rican Household Poverty Level]' 카테고리의 다른 글
2022-02-26 (0) 2022.02.26 2022-02-25 A Complete Introduction and Walkthrough[version 1.05] (0) 2022.02.25 2022-02-24 A Complete Introduction and Walkthrough[version 1.04] (0) 2022.02.24 2022-02-24 (0) 2022.02.24 2022-02-23 (0) 2022.02.23