카테고리 없음
Python에서 random sampling 수행하기
인생2막
2016. 11. 4. 19:06
반응형
출처: http://stackoverflow.com/questions/12190874/pandas-sampling-a-dataframe
Pandas에서 random sampling 할 수 있도록 함수 제공
- sample 함수이용
- df.sample(n=몇개의 row를 샘플할 것인지/sample 갯수 값)
반응형