This thoroughly revised guide demonstrates how the flexibility of the command line can help you become a more efficient and productive data scientist. You'll learn how to combine small yet powerful command-line tools to quickly obtain, scrub, explore, and model your data. To get you started, author Jeroen Janssens provides a Docker image packed with over 80 tools--useful whether you work with Windows, macOS, or Linux.
.
You'll quickly discover why the command line is an agile, scalable, and extensible technology. Even if you're comfortable processing data with Python or R, you'll learn how to greatly improve your data science workflow by leveraging the command line's power. This book is ideal for data scientists, analysts, and engineers; software and machine learning engineers; and system administrators.
.
• Obtain data from websites, APIs, databases, and spreadsheets
• Perform scrub operations on text, CSV, HTM, XML, and JSON files
• Explore data, compute descriptive statistics, and create visualizations
• Manage your data science workflow
• Create reusable command-line tools from one-liners and existing Python or R code
• Parallelize and distribute data-intensive pipelines
• Model data with dimensionality reduction, clustering, regression, and classification algorithms
.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Data Science at the Command Line, 2nd Edition
## 【One-Line Pitch】
A practical guide to doing end-to-end data science—obtaining, scrubbing, exploring, and modeling data—using the Unix command line's small, composable tools, ideal for data scientists, analysts, and engineers who want a faster, more flexible workflow than Python or R alone can offer.
## 【Book Arc】
- **Opening (~0%–10%)**: Introduces the OSEMN model (Obtain, Scrub, Explore, Model, iNterpret) as the book's organizing framework, argues why the command line is an agile, scalable, and ubiquitous technology for data science, and sets up the Docker-based environment with 80+ pre-installed tools.
- **Early (~10%–23%)**: Covers fundamental command-line concepts—navigating directories, executing tools, managing output, and getting help—then moves into the first OSEMN step: obtaining data from websites, APIs, databases, and spreadsheets using tools like curl, pup, and csvkit.
- **Early-to-Middle (~23%–39%)**: Deepens data-obtaining techniques with structured formats (JSON, XML) and introduces the practice of turning one-liners into reusable shell scripts, including how to manage the PATH variable and make custom tools globally accessible.
- **Middle (~39%–48%)**: Focuses on scrubbing data—the second OSEMN step—emphasizing plain text as the universal interchange format and demonstrating tools like cut, header, and body for manipulating CSV files and cleaning messy datasets.
- **Late (~48%–end)**: Covers exploring data with descriptive statistics and visualizations, parallelizing pipelines with GNU Parallel, modeling with dimensionality reduction, clustering, regression, and classification, and integrating the command line with R, Python, Jupyter, and Spark environments.
## 【Key Takeaways】
- **The OSEMN model structures the entire data science workflow** (Early): Obtain, Scrub, Explore, Model, and iNterpret provides a mental framework that maps each chapter to a concrete phase, making the book easy to navigate and apply to real projects.
- **The command line is a first-class data science environment, not just a fallback** (Early): Its ubiquity (100% of top supercomputers run Linux), five-decade track record, and composable tool philosophy make it a worthwhile investment even for Python/R users seeking workflow improvements.
- **Docker removes setup friction across operating systems** (Early): The provided Docker image with 80+ tools works on Windows, macOS, and Linux, letting you skip installation headaches and focus on learning the actual techniques.
- **Plain text is the universal data interchange format** (Middle): Text files outlive proprietary formats, are self-describing, and work with any editor—making them the ideal medium for piping data between command-line tools.
- **Small tools compose into powerful pipelines** (Early-to-Middle): Combining curl, tr, grep, sort, uniq, and head in a single pipeline (e.g., analyzing word frequencies in a book) demonstrates how simple pieces solve complex problems.
- **Turning one-liners into reusable scripts scales your productivity** (Middle): Saving pipelines as .sh files, making them executable, and adding them to your PATH transforms ad-hoc commands into permanent, callable tools.
- **GNU Parallel unlocks distributed processing** (Late): Applying tools to very large datasets across multiple cores or remote machines dramatically speeds up data-intensive pipelines without rewriting your logic.
- **The command line integrates with, not replaces, Python and R** (Late): You can call existing Python or R code from the command line and work alongside Jupyter Notebooks and Apache Spark, extending rather than abandoning your current stack.
## 【Reading Tips】
- **Read linearly, especially chapters 1–8**: The author explicitly notes that later chapters reuse concepts and tools introduced earlier (e.g., Chapter 9 depends heavily on Chapter 8's GNU Parallel discussion), so skipping ahead will create confusion.
- **Skim the "For Further Exploration" sections**: These point to external resources (Unix Power Tools, Docker: Up & Running, ShellCheck) that are valuable for deepening knowledge but not essential for following the main narrative.
- **Practice the examples hands-on**: The book is built around live demonstrations (e.g., scraping windmill data from Wikipedia, querying the Game of Thrones API). Type the commands yourself in the Docker container rather than just reading them.
- **Pay special attention to Chapter 2's environment setup**: Getting the Docker image running correctly is the single most important prerequisite; everything else builds on having the tools available.
- **Use the book as a reference after the first pass**: Once you understand the OSEMN framework and core tools, you can jump to specific chapters (e.g., Chapter 5 for web scraping, Chapter 8 for parallelization) when facing particular data problems.
## 【Coverage Limits】
This guide synthesizes the book's opening through middle sections (roughly the first half), covering the OSEMN framework, environment setup, data obtaining, and early scrubbing techniques. The later chapters on exploration, visualization, parallelization, and modeling are referenced but not detailed here, as the excerpts do not cover their full content.
##
Page 8
it was only when I came to Unix and its philosophy of small cooperating tools with the command-line shell as the glue that tied them together that I fully un...
g those numbers on one line with * as the delimiter using 7 paste, and passing this equation into 8 bc, which evaluates it and outputs the result: $ fac() {...
rsion 0.1, 2013, https://github.com/jeroenjanssens/dsutils. 9 Yakov Shafranovich, “Common Format and MIME Type for Comma- Separated Values (CSV) Files,” IETF...
st importantly, the Unix philosophy considers plain text to be the universal interface between command-line tools.5 This means that most tools accept plain t...
use everything that Bash has to offer, such as for loops. 2. By default, every line in a rule is sent separately to the shell. With the special target .ONESH...
│ │ < 403 > │ │ \ (oo)\_______ │ │ ||----w | │ > > q("no") RStudio The RStudio IDE is arguably the most popular environment for working with R. When you open...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Data Science at the Command Line Obtain, Scrub, Explore, and Model Data with Unix Power Tools. Second Edition (Jeroen Janssens) (Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Data Science at the Command Line Obtain, Scrub, Explore, and Model Data with Unix Power Tools. Second Edition (Jeroen Janssens) (Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment