Skip to content Skip to sidebar Skip to footer

How Does Pandas Resolve The Function Specified By Name In Df.agg

I'm learning Pandas and Numpy, currently going through this section of the tutorial. I'm new to Python altogether, so this is probably a basic beginner's question. Given this data

Solution 1:

In the documentation you linked to, it says:

You can also pass named methods as strings.

So strings are resolved as method names on the DataFrame (or Series, if you call agg on a Series).


Post a Comment for "How Does Pandas Resolve The Function Specified By Name In Df.agg"