Pertanyaan dan Jawaban Wawancara Paling Populer & Tes Online
Platform edukasi untuk persiapan wawancara, tes online, tutorial, dan latihan langsung

Bangun keterampilan dengan jalur belajar terfokus, tes simulasi, dan konten siap wawancara.

WithoutBook menghadirkan pertanyaan wawancara per subjek, tes latihan online, tutorial, dan panduan perbandingan dalam satu ruang belajar yang responsif.

Prepare Interview

Pandas Pertanyaan dan Jawaban Wawancara

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

Apakah ini membantu? 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')

Apakah ini membantu? 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'])

Apakah ini membantu? 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)

Apakah ini membantu? 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()

Apakah ini membantu? Add Comment View Comments
 

Most helpful rated by users:

Hak Cipta © 2026, WithoutBook.