Data munging with DataFrame.transform