typespecs.frame module#

typespecs.frame.concat(objs: Iterable[DataFrame], /) DataFrame[source]#

Concatenate DataFrames with missing values filled with <NA>.

Parameters:

objs – DataFrames to concatenate.

Returns:

Concatenated DataFrame.

typespecs.frame.default(obj: DataFrame, value: dict[str, Any] | Any, /) DataFrame[source]#

Fill missing values in given DataFrame with given value.

Parameters:
  • obj – DataFrame to fill.

  • value – Default value for each column. Either a single value or a dictionary mapping column names to values is accepted.

Returns:

DataFrame with missing values filled.

typespecs.frame.merge(obj: DataFrame, /) DataFrame[source]#

Merge multiple rows of a DataFrame into a single row.

Parameters:

obj – DataFrame to merge.

Returns:

Merged DataFrame.