-
2022-02-24<Kaggle>/[Costa Rican Household Poverty Level] 2022. 2. 24. 21:43728x90
df['x'] == 1 # 결과는 boolean series
df.groupby('x') # 'x'는 index로
.isin()(= ==+for) vs ==
households_no_head = df.loc[df['x'].isin(s[s == 0].index), :] # series.value.isin(index)
for i in (s[s == 0].index):
households_no_head = df.loc[df['x']==i, :]df['x'] == np.nan
-> df.loc[df['x'].isnull()]Counter(x) -> dict
728x90'<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-25 (0) 2022.02.25 2022-02-24 A Complete Introduction and Walkthrough[version 1.04] (0) 2022.02.24 2022-02-23 (0) 2022.02.23