Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Ashley Davis

Rating No ratings yet

With a growing ecosystem of tools and libraries available, and the flexibility to run on many platforms (web, desktop and mobile), JavaScript is a terrific all-round environment for all data wrangling needs! Data Wrangling with JavaScript teaches readers core data munging techniques in JavaScript, along with many libraries and tools that will make their data tasks even easier. about the book Data Wrangling with JavaScript promotes JavaScript to the center of the data analysis stage! With this hands-on guide, you’ll create a JavaScript-based data processing pipeline, handle common and exotic data, and master practical troubleshooting strategies. You’ll also build interactive visualizations and deploy your apps to production. Each valuable chapter provides a new component for your reusable data wrangling toolkit. what's inside • Establishing a data pipeline • Acquisition, storage, and retrieval • Handling unusual data sets • Cleaning and preparing raw data • Interactive visualizations with D3 about the reader Written for intermediate JavaScript developers. No data analysis experience required. about the author Ashley Davis is a software developer, entrepreneur, author, and the creator of Data-Forge and Data-Forge Notebook, software for data transformation, analysis, and visualization in JavaScript.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on guide that puts JavaScript at the center of the data analysis workflow, showing intermediate JS developers how to build a reusable data pipeline from raw acquisition through cleaning, storage, and interactive visualization. Read it if you already know JavaScript and want to wrangle real-world data without switching to Python. 【Book Arc】 - **Opening (~0%–10%)**: Frames why JavaScript is a viable data-wrangling environment and lays out the phase model—acquire, store, retrieve, explore, clean, analyze, visualize—that structures the whole book. - **Early (~10%–30%)**: Sets up the working environment (Node.js, REPL, npm, Express) and confronts the single-threaded constraint, teaching synchronous vs. asynchronous coding, callbacks, and promise chains as the backbone of any pipeline. - **Middle (~30%–50%)**: Moves into acquisition, storage, and retrieval—importing from text files, REST APIs, and CSV (via Papa Parse) into a common "core data representation" so heterogeneous sources can be normalized. - **Late (~50%–80%)**: Covers the messy reality of real data: handling unusual or large data sets, exploratory coding, and the clean-and-prepare phase where formats, types, and inconsistencies get rectified. - **Ending (~80%–100%)**: Builds interactive visualizations with D3 and addresses production concerns—deploying apps, error handling, and writing resilient code that survives scale. 【Key Takeaways】 - **Data wrangling is a pipeline, not a single step** (Opening): The book's organizing idea is a repeatable sequence of phases, each producing a reusable toolkit component rather than one-off scripts. - **JavaScript's single-threaded model shapes everything** (Early): Because Node.js blocks the main thread during synchronous work, asynchronous patterns—callbacks and especially promise chains—are mandatory for responsive data apps. - **A common data representation enables format flexibility** (Middle): Importing from files, REST APIs, and CSV into one internal format lets you convert between any source and any target without rewriting logic. - **CSV needs explicit type handling** (Middle): Unlike JSON, CSV stores everything as strings, so libraries like Papa Parse must infer types—convenient but occasionally wrong, requiring validation. - **Real data rarely matches expectations** (Early–Late): The reef-data example shows invalid values and string-typed dates; the clean-and-prepare phase exists precisely to detect and work around these issues. - **Exploratory coding is a legitimate, recurring phase** (Early): You return to it whenever you test an idea or new data, and it sits on a spectrum from throwaway ad hoc code to disciplined, production-grade pipelines. - **Planning must be balanced against overengineering** (Early): Enough planning improves outcomes, but planning for unlikely futures wastes effort—explore first when you lack information. - **Visualization and production are part of wrangling** (Ending): D3-based interactive visuals and deployment/resilience concerns close the loop from raw data to delivered product. 【Reading Tips】 - **Deep-read the async chapters (Early)**: Promise chains and error handling are the hardest conceptual hurdle and underpin every later example—don't skim them. - **Skim the environment setup (Early)**: Node.js installation, REPL, and the simplest Express server are reference material; return to them only when configuring your own machine. - **Treat the reef/earthquake examples as templates**: Follow one end-to-end example rather than every listing, since the book builds a toolkit incrementally across chapters. - **Focus on the clean-and-prepare and unusual-data material (Late)**: This is where the book's practical value concentrates for anyone facing real, messy datasets. - **Take away the phase model and the CDR concept**: These two abstractions transfer to any language or toolchain, even if you later move to Python. 【Coverage Limits】 The excerpts cover the book's framing, environment setup, async foundations, and early acquisition material in detail, but the later chapters on cleaning, large data sets, D3 visualization, and production deployment are represented only by chapter listings and brief mentions—specific techniques there are not covered here.
Page 8
r data pipeline 8 Setting the stage 9 ■ The data-wrangling process 10 ■ Planning 10 ■ Acquisition, storage, and retrieval 13 ■ Exploratory coding 15 ■ Clean...
View in text
Excerpt 2
e string values. What if the data doesn’t meet expectations? Then we have to rectify the data or adapt our workflow to fit, so next we move on to data cleanu...
View in text
Excerpt 3
once the synchronous unresponsive to further HTTP requests. operation has completed. you no alternate options. Main thread In this book I try to use only asy...
View in text
Excerpt 4
but I like to use the higher-level request-promise library because it’s easier, more convenient, and it wraps the operation in a promise for us. To retrieve...
View in text
Excerpt 5
iscovered how to import and export JSON and CSV text files. ¡ We discussed importing JSON and CSV data from a REST API via HTTP GET. ¡ You worked through exa...
View in text
Excerpt 6
t’s use Excel to prototype a for- mula and a visualization. We’ll create a new Trend column in our data set. Using Excel’s FORECAST function, we’ll forecast...
View in text
Excerpt 7
anges to the code are detected. Excel, as shown in figure 5.19, and check that it’s well formed and that the new column My coding setup for this section is s...
View in text
Excerpt 8
try: Australia.csv, United States.csv, and so on. Listing 6.11 Splitting data into multiple
View in text
Tags
AI categories
DataJavaScriptProgramming
ISBN: 1617294845
Publish Year: 2018
Language: English
Pages: 430
File Format: PDF
File Size: 14.3 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…