fips.base.Structure#

class fips.base.Structure[source]#

Bases: Pickleable, ABC

Abstract base class for structured data with pandas index and validation.

Attributes

data

The underlying data, which must be numeric and non-NaN.

index

Return the index of the underlying data.

name

Name of the structure, used for error messages and block naming.

shape

Return the shape of the underlying data.

values

Return the values as a numpy array.

Methods

copy([deep])

Create a copy of the structure.

reindex(index[, columns, verify_overlap, ...])

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

round_index(decimals[, axis, inplace])

Round float indices on the specified axis to given decimals.

to_numpy()

Get the underlying data as a NumPy array.

xs(key[, axis, level, drop_level])

Cross-select data based on index/column values.

Inherited

From Pickleable: from_file, to_file