df.drop(columns=df.columns[df.isna().all()], inplace=True)
inplace를 True로 설정하여, 따로 변수에 덮어씌우지 않아도 적용됨
반응형
'CS > python' 카테고리의 다른 글
| python graphviz 설치 오류 (0) | 2023.07.24 |
|---|---|
| scipy.stats.skew 가 nan을 리턴할 때 (0) | 2023.06.21 |
| [pandas] datetime64에 하루 더하기 (pandas DateOffsets) (0) | 2023.05.09 |
| Git Jupyter notebook 충돌 해결 방법 (0) | 2023.05.03 |
| [Python] tqdm progress bar 안보일 때 (해결) (0) | 2023.04.28 |