Previous topic

scikits.hydroclimpy.ReferencedSeries.ravel

Next topic

scikits.hydroclimpy.ReferencedSeries.resize

This Page

scikits.hydroclimpy.ReferencedSeries.reshape

ReferencedSeries.reshape(*newshape, **kwargs)

Returns a time series containing the data of a, but with a new shape.

The result is a view to the original array; if this is not possible, a ValueError is raised.

Parameters:

shape : shape tuple or int

The new shape should be compatible with the original shape. If an integer, then the result will be a 1D array of that length.

order : {‘C’, ‘F’}, optional

Determines whether the array data should be viewed as in C (row-major) order or FORTRAN (column-major) order.

Returns:

reshaped_array : array

A new view to the timeseries.

Warning

The _dates part is reshaped, but the order is NOT ensured.