typespecs.frame module#
- class typespecs.frame.SpecFrame(data=None, index: Axes | None = None, columns: Axes | None = None, dtype: Dtype | None = None, copy: bool | None = None)[source]#
Bases:
DataFrameSpecification DataFrame.
This is a subclass of the pandas DataFrame without any runtime modifications. It is intended to distinguish a specification DataFrame from other DataFrames.
- typespecs.frame.concat(frames: Iterable[DataFrame], /) DataFrame[source]#
Concatenate DataFrames with missing values filled with <NA>.
- Parameters:
frames – DataFrames to concatenate.
- Returns:
Concatenated DataFrame.
- typespecs.frame.default(frame: DataFrame, value: Mapping[str, Any] | Any, /) DataFrame[source]#
Fill missing values in given DataFrame with given value.
- Parameters:
frame – DataFrame to fill.
value – Default value for each column. Either a single value or a mapping of column names to values is accepted.
- Returns:
DataFrame with missing values filled.