I have a DataFrame (below). I am interested in unstacking the from and to columns.
I need to unstack from and to columns into multiple rows for each different year between from and to. For example, the first row will produce something like this
I tried everything from pd.melt() to pd.pivot_table().

