01
How do you pivot data in Pandas?
Show answer
pd.pivot_table(df, index='region', columns='month', values='sales', aggfunc='sum') reshapes long data into a summary matrix; melt() does the reverse.
72 questions with answers. Hands-on questions where you write code, a query, a formula or concrete steps.
Talk while you work: say your approach first, write the simplest correct version, then improve it and mention edge cases.
Most technical rounds include at least one live task. Practising the exact typing and reasoning makes you calm and fast in the real round.
Talk while you work: say your approach first, write the simplest correct version, then improve it and mention edge cases.