You did the Python right but the analysis wrong. Looking at it on a graph you can see that interpreting a single growth rate for the entire period (even if you stop pre-covid) doesn’t make sense.
You can see linear growth from 2010-2017. Then slow decline or at best a flatline from 2018-2021. Then they went crazy in 2022-2025.
Now if we just do 162k - 30k we are back to 132k, basically same ballpark as pre-COVID.
That's not how stocks are measured on wall street. They picked the dumb metric.