Efficient summaries
While pandas and NumPy have tons of functions, sometimes, you may need a different function to summarize your data.
The .agg() method allows you to apply your own custom functions to a DataFrame, as well as apply functions to more than one column of a DataFrame at once, making your aggregations super-efficient. For example,
df['column'].agg(function)
In the custom function for this exercise, "IQR" is short for inter-quartile range, which is the 75th percentile minus the 25th percentile. It's an alternative to standard deviation that is helpful if your data contains outliers.
sales is available and pandas is loaded as pd.
Please Subscribe: https://www.youtube.com/channel/UCbvX...
Like And Share The Video!
On this page of the site you can watch the video online #Aggregating with a duration of hours minute second in good quality, which was uploaded by the user Hypothesis Tech 22 January 2021, share the link with friends and acquaintances, this video has already been watched 84 times on youtube and it was liked by 5 viewers. Enjoy your viewing!