### Navigation

- index
- modules |
- next |
- previous |
- statsmodels v0.2.0 documentation »
- Tools »

# scikits.statsmodels.tools.unsqueeze

`scikits.statsmodels.tools.``unsqueeze`(data, axis, oldshape)

  Unsqueeze a collapsed array

      >>> from numpy import mean
      >>> from numpy.random import standard_normal
      >>> x = standard_normal((3,4,5))
      >>> m = mean(x, axis=1)
      >>> m.shape
      (3, 5)
      >>> m = unsqueeze(m, 1, x.shape)
      >>> m.shape
      (3, 1, 5)
      >>>

### Navigation

- index
- modules |
- next |
- previous |
- statsmodels v0.2.0 documentation »
- Tools »