def to_csv(self, filename: Union[str, PathLike] = None, encoding: str = "utf-8", errors: str = "strict"): return _to_csv(self, filename=filename, encoding=encoding, errors=errors)
def to_csv(self, filename, encoding: str = 'utf-8', errors: str = 'strict'): _to_csv(self, filename=filename, encoding=encoding, errors=errors)