mean() – Mean Function in python pandas is used to calculate the arithmetic mean of a given set of numbers, mean of a data frame ,column wise mean or mean of column in pandas and row wise mean or mean of rows in pandas , lets see an example of each . It can also fit scipy.stats distributions and plot the estimated PDF over the data. Parameters a Series, 1d-array, or list. Observed data. If this is a Series object with a name attribute, the name will be used to label the data axis. bins argument for matplotlib hist(), or None, optional. Specification of hist bins.