I have a df like this
and I need a df like this
Don't know how to get from a dict based on ID and NR to additional columns