Return df with its index relabeled (0→"first", 1→"second") and its columns relabeled (age→"age_years", weight→"weight_kg") at the same time.
df
0→"first"
1→"second"
age→"age_years"
weight→"weight_kg"
Sample data: df:
age weight 0 12 41.1 1 13 34.5
solve(...)