typeddfs._mixins._csv_like_mixin

Mixin for CSV and TSV.

Module Contents

class typeddfs._mixins._csv_like_mixin._CsvLikeMixin
classmethod read_csv(cls, *args, **kwargs) __qualname__

Reads from CSV, converting to this type. Using to_csv() and read_csv() from BaseFrame, this property holds:

df.to_csv(path)
df.__class__.read_csv(path) == df

Passing index on to_csv or index_col on read_csv explicitly will break this invariant.

Parameters
  • args – Passed to pd.read_csv; should start with a path or buffer

  • kwargs – Passed to pd.read_csv.

classmethod read_tsv(cls, *args, **kwargs) __qualname__

Reads tab-separated data. See read_csv() for more info.

to_csv(self, *args, **kwargs) Optional[str]
to_tsv(self, *args, **kwargs) Optional[str]

Writes tab-separated data. See to_csv() for more info.