강의

멘토링

커뮤니티

Inflearn Community Q&A

freeway38007247's profile image
freeway38007247

asked

Getting Started with Python Data Analysis Using Public Data

[8/20] Understanding data operations with pivot_table and the difference with groupby

pivot_table 작업시 칸 색상 질문

Written on

·

245

1

강의에서는pivot_table로 작업하니

각 열마다 회색/흰색으로 구분이 되어있네요.

그런데 제가 피벗테이블로 작업하면 회색 이 안나오는데

어떤 옵션이 있는건가요?

numpypythonpandas

Answer 2

0

freeway38007247님의 프로필 이미지
freeway38007247
Questioner

찾아냈습니다. 모니터 명암이 너무 밝으니 안보이는군요.. 

0

todaycode님의 프로필 이미지
todaycode
Instructor

안녕하세요. 

df.head() 로 데이터를 미리보기 했을 때도 색상이 구분 안 되어 보이나요?

Pandas의 기본 옵션은 데이터프레임 출력시 홀/짝행의 색상이 구분되게 보이는데요.

코드와 함께 스크린샷을 올려주시면 어느 부분이 잘못되었는지 확인해 드릴 수 있을거 같아요.

또 스크린샷을 올려주실 때 pivot_table 코드+결과와 여기에 사용한 데이터프레임을 데이터프레임명.head()로 미리보기 한 코드+결과를 함께 올려주세요.

freeway38007247's profile image
freeway38007247

asked

Ask a question