trying to create a function that will solve for the cumulative geometric mean for a vector or for columns of an array.  

I can solve the geometric mean of the entire vector/column..simply need to do the following: 

```
from scipy import stats
GM=stats.gmean(X)
print(GM)

```

When solving the cumulative arithmetic means, I can simply run pd.expanding\_mean(x) to get the cumulative mean.

Is there a function I can run which would give me the same result for the geometric mean?