Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Practical Data Analysis Cookbook

You're reading from   Practical Data Analysis Cookbook Over 60 practical recipes on data exploration and analysis

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781783551668
Length 384 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Tomasz Drabas Tomasz Drabas
Author Profile Icon Tomasz Drabas
Tomasz Drabas
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Preparing the Data 2. Exploring the Data FREE CHAPTER 3. Classification Techniques 4. Clustering Techniques 5. Reducing Dimensions 6. Regression Methods 7. Time Series Techniques 8. Graphs 9. Natural Language Processing 10. Discrete Choice Models 11. Simulations Index

Visualizing the interactions between features

D3.js is a powerful framework created by Mike Bostock to visualize data. It allows you to interactively manipulate data using HTML, SVG, and CSS. In this recipe, we will explore whether a relationship exists between the price of a property and the floor area.

Getting ready

To execute this recipe, you will need pandas and SQLAlchemy to prepare the data. For the visualization, all you need is the D3.js code (available in the GitHub repository for the book in the /Data/Chapter02/d3 folder). Some familiarity with HTML and JavaScript is required.

How to do it…

The code for this recipe comes in two parts: the data preparation (Python) and data visualization (HTML and D3.js).

The data preparation part is simple, and by now, you should be able to do it yourself. You can also refer to the Storing and retrieving from a relational database recipe from Chapter 1, Preparing the Data. We extract the data from the PostgreSQL database using SQLAlchemy. The...

You have been reading a chapter from
Practical Data Analysis Cookbook
Published in: Apr 2016
Publisher:
ISBN-13: 9781783551668
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime