지방이의 Data Science Lab

[python] 데이터 타입 바꾸기 본문

Data Analysis/Python

[python] 데이터 타입 바꾸기

[지현] 2019. 7. 29. 18:35
1
2
3
df = df.astype({'a':np.int32, 'b':np.float32})
df['acc_id'].astype('int64',inplace = True)
manu_y['신용등급'= pd.to_numeric(manu_y['신용등급']) 
 

 

Comments