My takeout so far is that .transform
will work (or deal) with Series
(columns) in isolation from each other.
You asked .transform
to take values from two columns and 'it' actually does not 'see' both of them at the same time (so to speak).
https://stackoverflow.com/questions/27517425/apply-vs-transform-on-a-group-object