typeddfs._core_dfs
ο
Module Contentsο
- class typeddfs._core_dfs.CoreDf(data=None, index=None, columns=None, dtype=None, copy=False)ο
An abstract Pandas DataFrame subclass with additional methods.
- abstract classmethod new_df(cls, **kwargs) __qualname__ ο
Creates a new, somewhat arbitrary DataFrame of this type. Calling this with no arguments should always be supported.
- Parameters
**kwargs β These should be narrowed by the overriding method as needed.
- Raises
UnsupportedOperationError β Can be raised if a valid DataFrame is too difficult to create.
InvalidDfError β May be raised if the type requires specific constraints and did not overload this method to account for them. While programmers using the type should be aware of this possibility, consuming code, in general, should assume that
new_df
will always work.
- vanilla(self) pandas.DataFrame ο
Makes a copy thatβs a normal Pandas DataFrame.
- Returns
A shallow copy with its
__class__
set to pd.DataFrame