특정 데이터 포함 여부 확인 in 연산자

df2 = DataFrame({'col1':['a123','b138','a156','d175'], 'col2':['c456','e456','b456','a456']})
df2['col1'].map(lambda x: 'a' in x)
0     True
1    False
2     True
3    False
Name: col1, dtype: bool
**df2[df2['col1'].map(lambda x: 'a' in x)]**    # col1 컬럼에서 a를 포함하는 행 색인

https://t1.daumcdn.net/cfile/tistory/9977C5475C6221AE05

출처: https://data-make.tistory.com/125

상관 분석 열 분리

df1.corr()['성별코드'][df1.corr()['성별코드'].map(lambda x : abs(x) > 0.1)].sort_values(ascending = False)