Premium problem79. Rename Columns and Index Together

Easy Locked

Return df with its index relabeled (0→"first", 1→"second") and its columns relabeled (age→"age_years", weight→"weight_kg") at the same time.

Input

   age  weight
0   12    41.1
1   13    34.5

Output

        age_years  weight_kg
first          12       41.1
second         13       34.5

Premium problem

This one's part of Premium. Unlock the full Pandas track plus every other premium problem on the site.

Implement solve(...)