0

Add an empty row to MultiIndex DataFrame

I want to refer to this link. How could I add the column idx_2 and its content r_1, r_2, r_3 to the new added row 'bar'? I want to do a linear extrapolation after adding empty rows to my multi index panel.

2
  • 1
    A sample code to construct your dataframe with a few rows would definitely help illustrate what you're trying to do here. Commented Dec 19, 2021 at 11:37
  • Please provide enough code so others can better understand or reproduce the problem. Commented Dec 26, 2021 at 11:22

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.