강의

멘토링

커뮤니티

Inflearn Community Q&A

welleundstrand's profile image
welleundstrand

asked

Mastering data analysis and visualization with just two pages of documentation

[21/25] Calculating the cumulative number of confirmed overseas inflow cases by date

set_index()

Written on

·

281

1

강의 따라가면서 만들고 있는데 오류나는데 혹시

잘못된것이 있나요?

 

 

set_index()pythonpandas

Answer 1

1

todaycode님의 프로필 이미지
todaycode
Instructor

안녕하세요.

df_day_oversea 라는 데이터프레임을 출력해 보세요.

아마 이미 set_index()를 통해 인덱스를 지정해서 해당 컬럼은 인덱스 값으로 변경이 되었을거에요.

그래서 다시 해당 코드를 실행하게 되면 컬럼이 아닌 인덱스에 해당 컬럼이 변경되어 있기 때문에 컬럼에서는 해당 값을 찾을 수 없다는 메시지 입니다.

welleundstrand's profile image
welleundstrand

asked

Ask a question