How to Clean Data at the Command Line

Learn how to clean data using command-line utility jq, xsv, and csvkit.
Share the link to this page
Copied

About the Product

Cleaning data is a widely known process that can let us explore data and see beyond its raw form. Multiple technologies can solve this task, but we have a problem.

The data-driven problem we face: Whenever you want to import a CSV file, by habit, you go to Google and see how to find the two lines that you always forget (in Python for example) so you get them to open up your text editor to make a file and paste what you found in it.

Why the command line?

The simplest data cleaning tasks might sound frustrating or time-wasting and maybe you use a higher-level library like Pandas but I bet you still write more code than just dealing with the terminal which can pack a bunch of lines of codes into just one-liner at the command line.

This ebook makes dealing with CSV files, JSON, or in general any text file much easier.

What's in it for you?

In this ebook, I'm trying to save your time and the hassle of dealing with files at the system level. You may also like the adventure of exploring command-line tools and programs that you may not have heard of. I encourage you to try these tools as I do on my workdays.

While dealing with the command line may sound a bit geeky, this ebook is simple and easy to follow, and it's a lot of fun. There are real examples from a scientific paper, Covid tracking project data, Reddit user data, and more that you can practice with and try useful programs and tools at the comfort of your command line.

Content:

  • In this ebook you'll be able to clean data using command-line tools: tr, grep, sort, uniq, sort, awk, sed, and csvlook and practice cleaning a COVID-19 CSV file using command-line programs: csvkit and xsv comparing the performance of each.
  • You'll also see how to sort and concatenate a large CSV file with csvkit and xsv, and calculate their performance with respect to Pandas.
  • In the last chapter, you'll get to know how to clean a JSON file using the command-line program jq.

Who should take this Product?

If you are a data scientist, data engineer, data analyst, software developer, or you use data a lot (like TXT, CSV, or JSON), this ebook is for you.

Requirements

You should have a basic understanding of how the terminal works.

Author

Ezzeddin Abdullah

Data Platform Engineer

School

Ezzeddinabdullah's School

One-time Fee
$8
€7.57
£6.33
CA$11.21
A$12.31
S$10.71
HK$62.26
CHF 7.06
NOK kr88.32
DKK kr56.50
NZ$13.59
د.إ29.38
৳951.41
₹675.42
RM35.78
₦13,342.32
₨2,211.73
฿276.46
₺276.73
B$46.40
R144.60
Лв14.83
₩11,155.62
₪29.91
₱471.28
¥1,230.19
MX$161.89
QR29.03
P108.62
KSh1,034
E£396.28
ብር985.56
Kz7,300
CLP$7,776.47
CN¥57.92
RD$479.70
DA1,067.18
FJ$18.15
Q61.51
GY$1,665.68
ISK kr1,100.64
DH79.71
L145.40
ден466.10
MOP$63.83
N$144.19
C$293.02
रु1,074.90
S/30.26
K32.02
SAR30.03
ZK219.54
L37.69
Kč191.74
Ft3,083.18
SEK kr87.78
ARS$7,988.14
Bs55.01
COP$35,378.80
₡4,054.71
L201.11
₲62,055.13
$U343.46
zł32.78

What's Included

File Size: 654K
Pages: 36
Language: English
Level: All levels
Skills: Data Cleaning, Command-line, Bash, Scripting, Data Manipulation
Age groups: All ages

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.