서울시 따릉이 대여량 예측 경진대회

count 는 float64 인가?

2022.08.02 19:43 1,601 조회

모델링을 통해서 예측 된 count 의 값들은 자료형이 float64 인가요?

모델링 하기전 'count' 컬럼을 'int64'로 바꿔주었는데도 말이죠...



로그인이 필요합니다
0 / 1000
당쇠
2022.08.05 23:38

>>> df = pd.DataFrame(np.random.rand(3,4), columns=list("ABCD"))
>>> df
          A         B         C         D
0  0.542447  0.949988  0.669239  0.879887
1  0.068542  0.757775  0.891903  0.384542
2  0.021274  0.587504  0.180426  0.574300
>>> df[list("ABCD")] = df[list("ABCD")].astype(int)
>>> df
   A  B  C  D
0  0  0  0  0
1  0  0  0  0
2  0  0  0  0