Home > other >  About pandas agg and transform function
About pandas agg and transform function

Time:02-25

Everybody is good, now I am learning pandas agg and transform these two functions, is also seen in CSDN thought under the teacher with such as




There are two I'm curious, please supervise your counsel:
1) for the use of red box agg function, whether through the loop statement or other means, through the same section of the code, the results can be a one-off, the income of each country, the mean age of fields, extreme value? [by get_group currently only once for a country, whether can I want to know about the one-time get all countries]


2) for the red box in the use of the transform function, whether through the loop statement or other means, through the same section of code, the results can be a one-off, the income of every country, that the value of the age and the average difference? [at present by the red box code, can retrieve all the data, I want to know whether can be distinguish by the country]

Thanked you dalao in advance!
  • Related