Book Image

Practical Data Analysis - Second Edition

By : Hector Cuesta, Dr. Sampath Kumar
Book Image

Practical Data Analysis - Second Edition

By: Hector Cuesta, Dr. Sampath Kumar

Overview of this book

Beyond buzzwords like Big Data or Data Science, there are a great opportunities to innovate in many businesses using data analysis to get data-driven products. Data analysis involves asking many questions about data in order to discover insights and generate value for a product or a service. This book explains the basic data algorithms without the theoretical jargon, and you’ll get hands-on turning data into insights using machine learning techniques. We will perform data-driven innovation processing for several types of data such as text, Images, social network graphs, documents, and time series, showing you how to implement large data processing with MongoDB and Apache Spark.
Table of Contents (21 chapters)
Practical Data Analysis - Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface

Getting started with D3.js


First, download the latest version of D3 from the official website at http://d3js.org/.

To go directly to the latest release, copy this snippet:

<script src="http://d3js.org/d3.v3.min.js"></script> 

In our basic examples, we can just open our HTML document in a web browser to view it. But when we need to load external data sources, we need to publish the folder on a web server like Apache, nginx, or IIS. Python provides us with an easy way to run a web server with http.server, so we just need to open the folder where our D3 files are present and execute the following command in the terminal:

$ python3 -m http.server 8000

In Windows, you can use the same command by removing the number 3 from Python:

> python -m http.server 8000

The following examples are based on the Mike Bostock reference gallery, which can be found at https://github.com/mbostock/d3/wiki/Gallery.

All the codes and datasets of this chapter may be found in the author's GitHub repository...