typeddfs._entries
ο
Convenient code for import.
Module Contentsο
- typeddfs._entries.affinity_matrixο
- typeddfs._entries.exampleο
- typeddfs._entries.matrixο
- typeddfs._entries.typedο
- typeddfs._entries.untypedο
- typeddfs._entries.wrapο
- class typeddfs._entries.FinalDfο
An untyped DataFrame meant for general use.
- class typeddfs._entries.TypedDfsο
The only thing you need to import from
typeddfs
.Contains static factory methods to build new DataFrame subclasses. In particular, see:
- :meth:`typed` - :meth:`untyped` - :meth:`matrix` - :meth:`affinity_matrix`
- Checksumsο
- ClashErrorο
- CompressionFormatο
- FileFormatο
- FilenameSuffixErrorο
- FinalDfο
- FrozeDictο
- FrozeListο
- FrozeSetο
- InvalidDfErrorο
- MissingColumnErrorο
- NoValueErrorο
- NonStrColumnErrorο
- NotSingleColumnErrorο
- UnexpectedColumnErrorο
- UnexpectedIndexNameErrorο
- UnsupportedOperationErrorο
- Utilsο
- ValueNotUniqueErrorο
- VerificationFailedErrorο
- _loggerο
- classmethod affinity_matrix(cls, name: str, doc: Optional[str] = None) typeddfs.builders.AffinityMatrixDfBuilder ο
Creates a new subclass of an
typeddfs.matrix_dfs.AffinityMatrixDf
.- Parameters
name β The name that will be used for the new class
doc β The docstring for the new class
- Returns
A builder instance (builder pattern) to be used with chained calls
- classmethod example(cls) Type[typeddfs.typed_dfs.TypedDf] ο
Creates a new example TypedDf subclass. The class has:
required index βkeyβ
required column βvalueβ
reserved column βnoteβ
no other columns
- Returns
The created class
- classmethod matrix(cls, name: str, doc: Optional[str] = None) typeddfs.builders.MatrixDfBuilder ο
Creates a new subclass of an
typeddfs.matrix_dfs.MatrixDf
.- Parameters
name β The name that will be used for the new class
doc β The docstring for the new class
- Returns
A builder instance (builder pattern) to be used with chained calls
- classmethod typed(cls, name: str, doc: Optional[str] = None) typeddfs.builders.TypedDfBuilder ο
Creates a new type with flexible requirements. The class will enforce constraints and subclass
typeddfs.typed_dfs.TypedDf
.- Parameters
name β The name that will be used for the new class
doc β The docstring for the new class
- Returns
A builder instance (builder pattern) to be used with chained calls
Example
TypedDfs.typed("MyClass").require("name", index=True).build()
- classmethod untyped(cls, name: str, doc: Optional[str] = None) Type[typeddfs.untyped_dfs.UntypedDf] ο
Creates a new subclass of
UntypedDf
. The returned class will not enforce constraints but will have some extra methods. In generaltyped()
should be preferred because it has more consistent behavior, especially for IO.- Parameters
name β The name that will be used for the new class
doc β The docstring for the new class
- Returns
A class instance
Example
MyClass = TypedDfs.untyped("MyClass")