반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

convert [pandas's data] to [numpy's data] 본문

[IT]/python

convert [pandas's data] to [numpy's data]

givemebro 2020. 3. 26. 10:09
반응형
label = {'Iris-setosa':0,'Iris-versicolor':1,'Iris-virginica':2}

iris_df['Name']=iris_df['Name'].map(label)

iris=iris_df.values #Pandas 데이터 모두를 Numpy 데이터 형태로 가져온다

 

 

반응형

'[IT] > python' 카테고리의 다른 글

python.str.encode/decode  (0) 2020.04.27
machine learning.데이터 간의 거리(기준 [0])  (0) 2020.04.07
machine learning.개발 순서  (0) 2020.04.07
모듈 구분  (0) 2020.03.26
열 계산  (0) 2020.03.25
3단 논법  (0) 2020.03.25
list/tuple/dict/set in python  (0) 2020.03.24
anaconda 실행  (0) 2020.03.24
Comments