Python How To Transform A Data Frame With Duplicated Key

Python How To Transform A Data Frame With Duplicated Key