• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

mote

데이터 프레임 타입바꾸기

다음과 같은 데이터 프레임을 만들었다. 현재 모든 열의 데이터 타입은 int이다. 이를 str로 바꾸기 위해서는 다음과 같은 방법이 있다. astype 뒤에 타입명만 작성할 경우 모든 열의 타입이 바뀌게 된다. astype뒤에 컬렴명과 타입명을 dict 형태로 작성히 원하는 열의 타입만 바꿀수 있다....

motepythonmote

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more