statsmodels.tools.tools.clean0

statsmodels.tools.tools.clean0(matrix)[source]

Erase columns of zeros: can save some time in pseudoinverse.

Parameters:

matrix (ndarray) – The array to clean.

Returns:

The cleaned array.

Return type:

ndarray