<commit_before># csv
--
    import "gopkg.in/azylman/optimus.v1/sinks/csv"


## Usage

#### func  New

```go
func New(source optimus.Table, filename string) error
```
New writes all of the Rows in a Table to a CSV file.<commit_msg>sinks: csv: fix outdated docs<commit_after># csv
--
    import "gopkg.in/azylman/optimus.v1/sinks/csv"


## Usage

#### func  New

```go
func New(source optimus.Table, filename string) error
```
New writes all of the Rows in a Table to a CSV file. It assumes that all Rows
have the same headers.
{'fraction_non_alphanumeric': 0.12357414448669202, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 3.663716814159292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2715149', 'n_tokens_mistral': 200, 'n_tokens_neox': 184, 'n_words': 66}