Day 6
39번 Cannot mask with non-boolean array containing NA / NaN values Ans = df.loc[df.choice_description.str.contains('Black') Ans = df.loc[df.choice_description.str.contains('Black',na=False)] Ans.head(5) 필터 표현식 앞에 물결표 연산자를 추가하면 조건에 맞지 않는 행이 반환됩니다. Ans = df.loc[~df.choice_description.str.contains('Vegetables',na=True)] Ans * 데이터 타입으로 컬럼 선택 - df.select_dtypes(exclude/include) : select 메서드 Ans = df.s..