Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

example of null removal #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,15 @@ it into an existing buffer to avoid `malloc` overhead (which is almost
certianly the bottleneck here), but that would require more code. Still,
file an issue if performance is a problem. We could probably make this a
maybe two to four times faster (and it would be fun to optimize).

## Removing all nulls

Here's how to remove [all nulls as defined by BigML](https://bigml.com/api/sources):

```
scrubcsv --null \\s\*\(N/A\|n/a\|NULL\|null\|\\-\|\\\#DIV/0\|\\\#REF\!\|\\\#NAME\\\?\|NIL\|nil\|NA\|na\|\\\#VALUE\!\|\\\#NULL\!\|NaN\|\\\#N/A\|\\\#NUM\!\|\\\?\)\\s\* foobar.csv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice addition to the README, but would that example be nicer if it relied on 'single quoting' in the shell instead of backslashes?

```

## Copyright

Copyright 2019 Faraday