fips.CovarianceMatrix.reindex#

CovarianceMatrix.reindex(index, columns=None, verify_overlap=False, inplace=False, **kwargs)#

Return a new instance with data reindexed to the specified index and columns.

Parameters:
  • index (pd.Index) – New index for the rows.

  • columns (pd.Index, optional) – New index for the columns (if DataFrame). If None, columns are not reindexed.

  • verify_overlap (bool, default False) – If True, verify that the new index overlaps with the existing index and raise an error if not.

  • inplace (bool, default False) – If True, modify the data in place and return self. Otherwise, return a new instance with the reindexed data.

  • **kwargs – Additional keyword arguments to pass to pandas reindex() method (e.g. fill_value, method, limit).

Returns:

A new instance with the reindexed data, or self if inplace=True.

Return type:

Structure