인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

jnood's profile image
jnood

asked

[After-work activities] Big Data Analysis Engineer Practical (Work-type 1,2,3)

Exam Environment Overview (Old Version)

작업형 2 실전 환경 연습 pd.dataframe 시 에러 해석 부탁드립니다

Resolved

Written on

·

417

0

pd.DataFrame({'cust_id': X_test['cust_id'], 'gender': pred})

기재하였는데요, 아래 에러 화면이 뜨는데 해석이 불가하여 문의드립니다.

 

> Makefile:6: recipe for target 'py3_run' failed

make: *** [py3_run] Error 1

Traceback (most recent call last):

File "/goorm/Main.out", line 37, in <module>

pd.DataFrame({'cust_id': X_test['cust_id'], 'gender': pred})

File "/usr/local/lib/python3.9/dist-packages/pandas/core/frame.py", line 636, in init

mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)

File "/usr/local/lib/python3.9/dist-packages/pandas/core/internals/construction.py", line 502, in dict_to_mgr

return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)

File "/usr/local/lib/python3.9/dist-packages/pandas/core/internals/construction.py", line 120, in arrays_to_mgr

python머신러닝빅데이터pandas빅데이터분석기사

Answer 1

0

roadmap님의 프로필 이미지
roadmap
Instructor

해당 코드는 문제가 없어 보입니다.

  1. 시험환경(체험)에서 새로고침해서 다시 붙여넣기 했을 때 정상 작동할 때가 있어요

  2. 만약 다시 해도 문제가 발생한다면 이전 코드에서 문제가 있는 것 같아요 한번 해보고 안되면 전체코드를 보여주시겠어요? 위에"코드블럭" 아이콘을 활용해서 올려주시면 확인이 편할 것 같아요

jnood's profile image
jnood

asked

Ask a question