O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Finding the standard deviation

Standard deviation is a similar measurement to variance. It is determined by calculating the square root of the variance and is defined as follows:

Remember that the variance squares the difference between all measurements and the mean. Because of this, the variance is not in the same units and the actual values. By using the square root of the variance, the standard deviation is in the same units as the values in the original dataset.

The standard deviation is calculated using the .std() method as is demonstrated here:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required