typeddfs._mixins._full_io_mixin
ο
Combines various IO mixins.
Module Contentsο
- class typeddfs._mixins._full_io_mixin._FullIoMixinο
- classmethod _call_read(cls, clazz, path: Union[pathlib.Path, str]) pandas.DataFrame ο
- _call_write(self, path: Union[pathlib.Path, str]) Optional[str] ο
- classmethod _check_io_ok(cls, path: pathlib.Path, fmt: Optional[typeddfs.file_formats.FileFormat])ο
- classmethod _get_fmt(cls, path: pathlib.Path) Optional[typeddfs.file_formats.FileFormat] ο
- classmethod _get_io(cls, on, path: pathlib.Path, fmt: typeddfs.file_formats.FileFormat, custom, prefix: str)ο
- classmethod _get_read_kwargs(cls, fmt: Optional[typeddfs.file_formats.FileFormat], path: pathlib.Path) Mapping[str, Any] ο
- classmethod _get_write_kwargs(cls, fmt: Optional[typeddfs.file_formats.FileFormat], path: pathlib.Path) Mapping[str, Any] ο
- pretty_print(self, fmt: Union[None, str, tabulate.TableFormat] = None, *, to: Optional[typeddfs.utils._utils.PathLike] = None, mode: str = 'w', **kwargs) str ο
Outputs a pretty table using the tabulate package.
- Parameters
fmt β A tabulate format; if None, chooses according to
to
, falling back to"plain"
to β Write to this path (.gz, .zip, etc. is inferred)
mode β Write mode: βwβ, βaβ, or βxβ
kwargs β Passed to tabulate
- Returns
The formatted string