#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목[re]파이썬으로 데이터 주무르기 관련 질문입니다2022-04-13 16:53
작성자

series에 있는 str 값들을 int형으로 바꾸어 주려면

df['att1'].astype(int) 를 사용해주시면 됩니다.

-> df['newAtt'] = df['att1'].astype(int) + df['att2'].astype(int)

댓글