typeddfs._mixins._formatted_mixin
ο
Mixin for formats like HTML and RST.
Module Contentsο
- class typeddfs._mixins._formatted_mixin._FormattedMixinο
- _tabulate(self, fmt: Union[str, tabulate.TableFormat], **kwargs) str ο
- classmethod read_html(cls, path: typeddfs.utils._utils.PathLike, *args, **kwargs) __qualname__ ο
Similar to
pd.read_html
, but requires exactly 1 table and returns it.- Raises
lxml.etree.XMLSyntaxError β If the HTML could not be parsed
NoValueError β If no tables are found
ValueNotUniqueError β If multiple tables are found
- to_html(self, *args, **kwargs) Optional[str] ο
- to_markdown(self, *args, **kwargs) Optional[str] ο
- to_rst(self, path_or_none: Optional[typeddfs.utils._utils.PathLike] = None, style: str = 'simple', mode: str = 'w') Optional[str] ο
Writes a reStructuredText table. :param path_or_none: Either a file path or
None
to return the string :param style: The type of table; currently only βsimpleβ is supported :param mode: Write mode