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.49
£6.46
CA$11.03
A$12.46
S$10.89
HK$62.65
CHF 7.28
NOK kr88.14
DKK kr56.01
NZ$13.58
د.إ29.38
৳876.06
₹666.96
RM38.27
₦10,376
₨2,221.54
฿294.29
₺259.88
B$41.62
R154.35
Лв14.69
₩10,995.96
₪30.25
₱460.58
¥1,237
MX$136.80
QR29.12
P110.87
KSh1,049.69
E£385.79
ብር453.56
Kz6,696
CLP$7,619.04
CN¥57.91
RD$471.05
DA1,076.74
FJ$18.21
Q62.08
GY$1,670.09
ISK kr1,126.84
DH80.86
L143.28
ден461.94
MOP$64.40
N$153.38
C$295.68
रु1,066.16
S/29.78
K30.40
SAR30.01
ZK204.95
L37.35
Kč189.59
Ft2,963.31
SEK kr87.30
ARS$6,942.83
Bs55.27
COP$31,358.98
₡4,008.80
L197.07
₲59,056.50
$U307.15
zł32.35

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.