Mastering Large Datasets
Parallelize and Distribute your Python Code
John T. Wolohan
  • MEAP began February 2019
  • Publication in Early 2020 (estimated)
  • ISBN 9781617296239
  • 350 pages (estimated)
  • printed in black & white

It's a joy to read with examples that will help you learn the topic.

Richard Tobias
Modern data science solutions need to be clean, easy to read, and scalable. In Mastering Large Datasets, author J.T. Wolohan teaches you how to take a small project and scale it up using a functionally-influenced approach to Python coding. You’ll explore methods and built-in Python tools that lend themselves to clarity and scalability, like the high-performing parallelism method, as well as distributed technologies that allow for high data throughput. The abundant hands-on exercises in this practical tutorial will lock in these essential skills for any large scale data science project.
Table of Contents detailed table of contents

Part 1: The map & reduce style

1 Introduction

1.1 What you will learn in this book

1.2 What is parallel computing?

1.2.1 Understanding parallel computing

1.2.2 Map & Reduce style as a construction project

1.2.3 When to program in a Map & Reduce style?

1.3 The Map & Reduce style

1.3.1 The map function

1.3.2 The reduce function

1.3.3 Map and Reduce

1.4 Distributed computing

1.5 Hadoop

1.6 Spark

1.7 AWS Elastic MapReduce

1.8 Summary

2 Working with large datasets faster: parallelization and the map function

2.1 An introduction to map

2.1.1 Lazy functions

2.2 Parallel processing

2.2.1 Processors and Processing

2.2.2 Paralleization and Pickling

2.2.3 Order and Parallelization

2.2.4 State and Parallelization

2.3 Putting it all together: Scraping a Wikipedia network

2.3.1 Visualizing our graph

2.4 Exercises

2.5 Summary

3 Function pipelines for mapping complex transformations

3.1 Helper functions and function chains

3.2 Unmasking Hacker Communications

3.2.1 Creating helper functions

3.2.2 Creating a pipeline

3.3 Twitter demographic projections

3.3.1 Tweet-level pipeline

3.3.2 User-level pipeline

3.3.3 Applying the pipeline

3.4 Exercises

3.4.1 “Math teacher” trick

3.4.2 Caesar’s cipher

3.5 Summary

4 Processing large datasets with lazy workflows

4.1 What is laziness?

4.2 Some lazy functions to know

4.2.1 Shrinking sequences with the filter function

4.2.2 Combining sequences with zip

4.2.3 Lazy file searching with iglob

4.3 Understanding iterators: the magic behind lazy Python

4.3.1 The backbone of lazy Python: Iterators

4.3.2 Generators: Functions for creating data

4.4 The poetry puzzle: lazily processing a large dataset

4.4.1 Reading poems in with iglob

4.4.2 A poem cleaning regular expression class

4.4.3 Calculating the ratio of articles

4.5 Lazy simulations: Simulating fishing villages

4.5.1 Creating a village class

4.5.2 Designing the simulation class for our fishing simulation

4.6 Exercises

4.6.1 Parallel simulations

4.6.2 Scrabble words

4.7 Summary

5 Accumulation operations with reduce

6 Speeding up map and reduce with advanced parallelization

Part 2: Distributed frameworks

7 Distributed computing with Apache Hadoop and Spark for truly large datasets

8 Hadoop MapReduce for quickly analyzing large datasets

9 Applying the map and reduce style in Spark

10 Distributed machine learning on large datasets with Spark

Part 3: Massively parallel cloud

11 Storing and processing large datasets in the cloud

12 MapReduce in the cloud with Amazon’s Elastic MapReduce (EMR)

About the Technology

Python is a data scientist’s dream-come-true, thanks to readily available libraries that support tasks like data analysis, machine learning, visualization, and numerical computing. What’s more, Python’s high-level nature makes for easy-to-read, concise code, which means speedy development and easy maintenance—valuable benefits in the multi-user development environments so prevalent in the realm of big data analysis. Python achieves superbly with features like its map and reduce functions.



The demand for data scientists is high!

According to a recent IBM study, not only will the demand for data scientists skyrocket 28% by 2020, but those who can confidently work with programming concepts like map/reduce, distributed data technologies like Hadoop and Spark, and cloud platforms like AWS, GCP, and Azure command the highest salaries! With the ever-increasing volume of accessible data, the forecast is bright for data scientists with these valuable skills!

About the book

Mastering Large Datasets teaches you to write easily readable, easily scalable Python code that can efficiently process large volumes of structured and unstructured data. With an emphasis on clarity, style, and performance, author J.T. Wolohan expertly guides you through implementing a functionally-influenced approach to Python coding. You’ll get familiar with Python’s functional built-ins like the functools operator and itertools modules, as well as the toolz library.

You’ll also dive into parallel processing using the standard multiprocessing module, the third-party pathos framework, Apache Hadoop, Apache Spark, and PySpark. You’ll even learn how to use these tools on a cloud platform like AWS. The many hands-on exercises throughout ensure your new knowledge sticks. By the end of this comprehensive guide, you’ll have a solid grasp on the tools and methods that will take your code beyond the laptop and your data science career to the next level!

What's inside

  • An introduction to functional and parallel programming
  • Data science workflow
  • Profiling code for better performance
  • Python multiprocessing
  • Practical exercises including full-scale distributed applications

About the reader

Readers should have intermediate Python programming skills.

About the author

J.T. Wolohan is a lead data scientist at Booz Allen Hamilton and a PhD researcher at Indiana University, Bloomington, affiliated with the Department of Information and Library Science and the School of Informatics and Computing. His professional work focuses on rapid prototyping and scalable AI. His research focuses on computational analysis of social uses of language online.

Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
MEAP combo $49.99 pBook + eBook + liveBook
MEAP eBook $39.99 pdf + ePub + kindle + liveBook

placing your order...

Don't refresh or navigate away from the page.

FREE domestic shipping on three or more pBooks