221206 TIL: Pandas sample 후 reset_index() 필요성December 06, 20221. Pandas 데이터프레임에 sample()을 적용하여 모델 데이터셋을 만들 때 reset_index()를 해주어야 모델에 데이터를 넣을 때 KeyError가 발생하지 않는다. navigation = {"previous": "221205 TIL: Pandas 데이터셋 분할 (train/valid)","next": "221209 TIL: UTF-8과 UTF-8-SIG 차이"}