가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

Pandas 면접 질문과 답변

Ques 21. Explain the purpose of the crosstab() function in Pandas.

crosstab() computes a cross-tabulation of two or more factors.

Example:

pd.crosstab(df['Factor1'], df['Factor2'])

도움이 되었나요? Add Comment View Comments
 

Ques 22. How to handle categorical data in Pandas?

You can use the astype() method to convert a column to a categorical type: df['Category'] = df['Category'].astype('category')

도움이 되었나요? Add Comment View Comments
 

Ques 23. Explain the use of melt() function in Pandas.

melt() is used to reshape or transform data by unpivoting it.

Example:

pd.melt(df, id_vars=['ID'], value_vars=['Var1', 'Var2'])

도움이 되었나요? Add Comment View Comments
 

Ques 24. What is the purpose of the to_csv() method in Pandas?

to_csv() is used to write a DataFrame to a CSV file.

Example:

df.to_csv('output.csv', index=False)

도움이 되었나요? Add Comment View Comments
 

Ques 25. Explain the use of the nunique() function in Pandas.

nunique() returns the number of unique elements in a column.

Example:

df['Column'].nunique()

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.