104. Cross-Section from a MultiIndex

Medium

df is indexed by (date, name). Return the subset of rows where name == "AAPL", across all dates, with the name level of the index dropped (so the result is indexed only by date).

Sample data: df:

                  close
date       name        
2020-01-01 AAPL     100
           GOOGL    200
2020-01-02 AAPL     101
           GOOGL    202
Implement solve(...)