人気の面接質問と回答・オンラインテスト
面接対策、オンラインテスト、チュートリアル、ライブ練習のための学習プラットフォーム

集中型学習パス、模擬テスト、面接向けコンテンツでスキルを伸ばしましょう。

WithoutBook は、分野別の面接質問、オンライン練習テスト、チュートリアル、比較ガイドをひとつのレスポンシブな学習空間にまとめています。

面接準備

Pandas 面接の質問と回答

質問 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'])

役に立ちましたか? コメントを追加 コメントを見る
 

質問 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')

役に立ちましたか? コメントを追加 コメントを見る
 

質問 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'])

役に立ちましたか? コメントを追加 コメントを見る
 

質問 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)

役に立ちましたか? コメントを追加 コメントを見る
 

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

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

Example:

df['Column'].nunique()

役に立ちましたか? コメントを追加 コメントを見る
 

ユーザー評価で最も役立つ内容:

著作権 © 2026、WithoutBook。