typeddfs.untyped_dfs
ο
Defines DataFrames with convenience methods but that do not enforce invariants.
Module Contentsο
- class typeddfs.untyped_dfs.UntypedDf(data=None, index=None, columns=None, dtype=None, copy=False)ο
A concrete DataFrame that does not require columns or enforce conditions. Overrides a number of DataFrame methods that preserve the subclass. For example, calling
df.reset_index()
will return aUntypedDf
of the same type asdf
.- classmethod get_typing(cls) typeddfs.df_typing.DfTyping ο
- classmethod new_df(cls, rows: int = 0, cols: Union[int, Sequence[str]] = 0, fill: Any = 0) __qualname__ ο
Creates a new, semi-arbitrary DataFrame of the specified rows and columns. The DataFrame will have no index.
- Parameters
rows β Number of rows
cols β Number of columns or a sequence of column labels
fill β Fill every cell with this value