Net position grid

Pandas

Net position grid

Zerodha Pandas Interview Question
hardPremium

About this question

A hard Pandas question from Zerodha data analyst and business analyst interviews about net holdings as a client-by-stock grid. It tests pivot tables in pandas, aggregating signed quantities and filling missing combinations.

The full question, its data and the solution are part of Premium, along with every other question in the library.

  • The full question and its datasets
  • The editor with instant grading
  • A worked solution and common mistakes