hpmcm.table module
- class hpmcm.table.TableColumnInfo(dtype, msg)[source]
Bases:
objectHelper class to manage a column in a table
This provides a mechanism to document the column in the class docstring, and to validate input data
- Parameters:
dtype (type)
msg (str)
- class hpmcm.table.TableInterface(df=None, **kwargs)[source]
Bases:
objectTable Schema
- Parameters:
df (pandas.DataFrame | None)
kwargs (Any)
- property data: DataFrame
Return the underlying data
- classmethod emtpyNumpyDict(n)[source]
Create a dict of empty numpy arrays
- Return type:
dict[str,ndarray]- Parameters:
n (int)
Parameter
- n:
Length of the arrays
- classmethod read(file_path, extra_cols)[source]
Read a dataframe from a file
- Return type:
DataFrame- Parameters:
file_path (str)
extra_cols (list[str])