파이썬
[Python] inplace = True?
필경이야
2022. 4. 21. 13:25
네이버 사전에 의하면
\[in place
(inplace)
\]([https://en.dict.naver.com/#/entry/enko/f543210794ed4337aa78b9abac70cd9d](https://en.dict.naver.com/#/entry/enko/f543210794ed4337aa78b9abac70cd9d))
**1**
제자리에 (있는), …을 위한 준비가 되어 있는
라는 뜻이다
inplace = True로 설정하면 기존 데이터프레임 변수에 덮어쓰게된다
예를들어
day_total_type1_2021.set_index('date',inplace = True)
위와 같은 코드가 있을 때 day_total_type1_2021에 set_index함수를 설정한 데이터가 day_total_type1_2021 변수에 덮어써진다.