반응형 판다스2 DataFrame.info() got an unexpected keyword argument 'null_counts' || Deprecated argument - null_counts 한 줄 요약(Long story short~!) : DataFrame.info(null_counts=True) ==> DataFrame.info(show_counts=True) Pandas를 설치한 이후로 업데이트 없이 지속적으로 사용을 하다 보니 아래와 같이 잘 사용하고 있었는데.... Since installing Pandas(The old version), I didn't update it. Pandas를 2.0.3으로 업데이트 한 뒤로는 null_counts 인자가 먹히질 않았다.. However, null_counts argument didn't work after updating Pandas. 해당 Pandas document에 들어가서 확인해 본 결과(version 1.2.0 에는 Depre.. 2023. 8. 21. Pandas resample for date control(W-MON or W-FRI) | 판다스 리샘플링 판다스 resample 함수는 유용하게 시계열 데이터를 샘플링할 수 있다. Pandas resample function is useful for sampling of the time series data 일반적으로 사용되어지는 옵션으로는 주 단위 샘플링은 W, 월 단위 샘플링은 M, 년 단위는 Y, 분단위나 초 단위도 가능하다. Available used options of pandas.resample are W for a week, M for a month, Y for a year, and possibly for minutes and seconds unit. 하지만 해당 샘플링의 일자가 변경돼야 할 경우가 있다. Sometimes, we need different dates for easier cont.. 2023. 7. 6. 이전 1 다음 728x90 반응형