fips.CovarianceMatrix.round_index#
- CovarianceMatrix.round_index(decimals, axis=0, inplace=False)#
Round float indices on the specified axis to given decimals. Non-float indices are left unchanged.
- Parameters:
decimals (int) – Number of decimal places to round to.
axis (int or {'index', 'columns', 'both'}, default 0) – Axis to round indices on. 0 or ‘index’ for row index, 1 or ‘columns’ for columns, ‘both’ for both axes.
inplace (bool, default False) – If True, round indices in place and return self. Otherwise, return a new instance with rounded indices.
- Returns:
A new instance with rounded indices, or self if inplace=True.
- Return type:
Structure