pandas is extremely powerful for modeling and manipulating data, but it also provides many powerful tools for numerical and statistical analysis. These capabilities are tightly integrated with pandas data structures and thereby make complex calculations very simple once the data is modeled.
This chapter will examine many of these capabilities. It starts with common numerical methods such as arithmetic with alignment across multiple objects, as well as finding specific values such as minimums and maximums. We then will look at many of the statistical capabilities of pandas, such as working with quantiles, ranking of values, variance, correlation, and many others.
Last but not least, we will examine a very powerful capability provided in pandas known as the rolling window. Rolling windows provide a means of applying various methods such mean calculation...