Inflearn brand logo image

Inflearn Community Q&A

dlqkqhdi32596342's profile image
dlqkqhdi32596342

asked

Introduction to Machine Learning from Scratch

Categorical Data Handling

scikit-learn preprocessing 할때 Data Frame object has no attribute 'as matrix'라는 오류가 뜹니다

Written on

·

328

0

앞에서부터 코드 처음부터 쭉 쳤는데 16번째 줄인

raw_example = df.as_matrix()

raw_example[:3]

이 부분에서 

'DataFrame' object has no attribute 'as_matrix'

이런 오류가 납니다ㅠㅠ 해결방안 아시는가요?

머신러닝 배워볼래요?

Answer 1

0

죄송합니다. 이제 outdate된 코드가 나오기 시작하는군요.

df.values 로 하시면 처리 됩니다.

dlqkqhdi32596342's profile image
dlqkqhdi32596342

asked

Ask a question