Apply vs transform on a group object

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

猜你喜欢

转载自www.cnblogs.com/andy-0212/p/10020088.html