Python Business Intelligence Cookbook 1st Edition Robert Dempsey download
Python Business Intelligence Cookbook 1st Edition Robert Dempsey download
https://ebookfinal.com/download/python-business-intelligence-
cookbook-1st-edition-robert-dempsey/
https://ebookfinal.com/download/artificial-intelligence-with-
python-1st-edition-prateek-joshi/
https://ebookfinal.com/download/python-and-aws-cookbook-1st-edition-
mitch-garnaat/
https://ebookfinal.com/download/python-parallel-programming-
cookbook-1st-edition-giancarlo-zaccone/
https://ebookfinal.com/download/python-cookbook-2nd-ed-edition-alex-
martelli/
NumPy Cookbook Python 2nd Edition Ivan Idris
https://ebookfinal.com/download/numpy-cookbook-python-2nd-edition-
ivan-idris/
https://ebookfinal.com/download/applied-intelligence-1st-edition-
robert-j-sternberg/
https://ebookfinal.com/download/raspberry-pi-3-cookbook-for-python-
programmers-third-edition-tim-cox/
https://ebookfinal.com/download/raspberry-pi-for-python-programmers-
cookbook-2nd-revised-edition-tim-cox/
https://ebookfinal.com/download/business-to-business-marketing-1st-
edition-robert-vitale/
Python Business Intelligence Cookbook 1st Edition
Robert Dempsey Digital Instant Download
Author(s): Robert Dempsey
ISBN(s): 9781785287466, 178528746X
Edition: 1
File Details: PDF, 9.22 MB
Year: 2015
Language: english
Table of Contents
Python Business Intelligence Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Set Up to Gain Business Intelligence
Introduction
Installing Anaconda
Getting ready
How to do it…
Mac OS X 10.10.4
Windows 8.1
Linux Ubuntu server 14.04.2 LTS
How it works…
Learn about the Python libraries we will be using
Installing, configuring, and running MongoDB
Getting ready
How to do it…
Mac OS X
Windows
Linux
How it works…
Installing Rodeo
Getting ready
How to do it…
How it works…
Starting Rodeo
Getting ready
How to do it…
Installing Robomongo
Getting ready
How to do it…
Mac OS X
Windows
Using Robomongo to query MongoDB
Getting ready
How to do it…
Downloading the UK Road Safety Data dataset
How to do it…
How it works…
Why we are using this dataset
2. Making Your Data All It Can Be
Importing a CSV file into MongoDB
Getting ready
How to do it…
How it works…
There's more…
Importing an Excel file into MongoDB
Getting ready
How to do it…
How it works…
Importing a JSON file into MongoDB
Getting ready
How to do it…
Importing a plain text file into MongoDB
How to do it…
How it works…
Retrieving a single record using PyMongo
Getting ready
How to do it…
How it works…
Retrieving multiple records using PyMongo
Getting ready
How to do it…
How it works…
Inserting a single record using PyMongo
Getting ready
How to do it…
How it works…
Inserting multiple records using PyMongo
Getting ready
How to do it…
How it works…
Updating a single record using PyMongo
Getting ready
How to do it…
How it works…
Updating multiple records using PyMongo
Getting ready
How to do it…
How it works…
Deleting a single record using pymongo
Getting ready
How to do it…
How it works…
Deleting multiple records using PyMongo
Getting ready
How to do it…
How it works…
Importing a CSV file into a Pandas DataFrame
Getting ready
How to do it…
How it works…
There's more…
Renaming column headers in Pandas
Getting ready
How to do it…
How it works…
Filling in missing values in Pandas
Getting ready
How to do it…
How it works…
Removing punctuation in Pandas
Getting ready
How to do it…
How it works…
Removing whitespace in Pandas
Getting ready
How to do it…
How it works…
Removing any string from within a string in Pandas
Getting ready
How to do it…
How it works…
Merging two datasets in Pandas
Getting ready
How to do it…
How it works…
Titlecasing anything
Getting ready
How to do it…
How it works…
Uppercasing a column in Pandas
Getting ready
How to do it…
How it works…
Updating values in place in Pandas
Getting ready
How to do it…
How it works…
Standardizing a Social Security number in Pandas
Getting ready
How to do it…
How it works…
Standardizing dates in Pandas
Getting ready
How to do it…
How it works…
Converting categories to numbers in Pandas for a speed boost
Getting ready
How to do it…
How it works…
3. Learning What Your Data Truly Holds
Creating a Pandas DataFrame from a MongoDB query
Getting ready
How to do it…
How it works…
Creating a Pandas DataFrame from a CSV file
How to do it…
How it works…
Creating a Pandas DataFrame from an Excel file
How to do it…
How it works…
Creating a Pandas DataFrame from a JSON file
How to do it…
How it works…
Creating a data quality report
Getting ready
How to do it…
How it works…
Generating summary statistics for the entire dataset
How to do it…
How it works…
Generating summary statistics for object type columns
How to do it…
How it works…
Getting the mode of the entire dataset
How to do it…
How it works…
Generating summary statistics for a single column
How to do it…
How it works…
Getting a count of unique values for a single column
How to do it…
How it works…
Additional Arguments
Getting the minimum and maximum values of a single column
How to do it…
How it works…
Generating quantiles for a single column
How to do it…
How it works…
Getting the mean, median, mode, and range for a single column
How to do it…
How it works…
Generating a frequency table for a single column by date
Getting ready
How to do it…
How it works…
Generating a frequency table of two variables
Getting ready
How to do it…
How it works…
Creating a histogram for a column
Getting ready
How to do it…
How it works…
Plotting the data as a probability distribution
How to do it…
How it works…
Plotting a cumulative distribution function
How to do it…
How it works…
Showing the histogram as a stepped line
How to do it…
How it works…
Plotting two sets of values in a probability distribution
How to do it…
How it works…
Creating a customized box plot with whiskers
How to do it…
How it works…
Creating a basic bar chart for a single column over time
How to do it…
How it works…
4. Performing Data Analysis for Non Data Analysts
Performing a distribution analysis
How to do it…
How it works…
Performing categorical variable analysis
How to do it…
How it works…
Performing a linear regression
How to do it…
How it works…
Performing a time-series analysis
How to do it…
How it works…
Performing outlier detection
How to do it…
How it works…
Creating a predictive model using logistic regression
How to do it…
How it works…
Creating a predictive model using a random forest
How to do it…
How it works…
Creating a predictive model using Support Vector Machines
How to do it…
How it works…
Saving a predictive model for production use
Getting Ready
How to do it…
How it works…
5. Building a Business Intelligence Dashboard Quickly
Creating reports in Excel directly from a Pandas DataFrame
How to do it…
How it works…
Creating customizable Excel reports using XlsxWriter
How to do it…
How it works…
Building a shareable dashboard using IPython Notebook and
matplotlib
Getting Set Up…
How to do it…
How it works…
Exporting an IPython Notebook Dashboard to HTML
Getting Ready…
How to do it…
How it works…
See Also…
Exporting an IPython Notebook Dashboard to PDF
Getting Ready…
How to do it...
Method one…
Method 2…
Exporting an IPython Notebook Dashboard to an HTML slideshow
How to do it…
How it works…
Building your First Flask application in 10 minutes or less
Getting Set Up…
How to do it…
How it works…
See Also..
Creating and saving your plots for your Flask BI dashboard
How to do it…
How it works…
Building a business intelligence dashboard in Flask
How to do it…
How it works…
Index
Python Business Intelligence
Cookbook
Python Business Intelligence
Cookbook
Copyright © 2015 Packt Publishing
Every effort has been made in the preparation of this book to ensure
the accuracy of the information presented. However, the information
contained in this book is sold without warranty, either express or
implied. Neither the author, nor Packt Publishing, and its dealers and
distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Livery Place
35 Livery Street
ISBN 978-1-78528-746-6
www.packtpub.com
Credits
Author
Robert Dempsey
Reviewer
Utsav Singh
Commissioning Editor
Nadeem Bagban
Acquisition Editor
Sonali Vernekar
Preeti Singh
Technical Editor
Siddhesh Patil
Copy Editor
Sonia Mathur
Project Coordinator
Shweta H. Birwatkar
Proofreader
Safis Editing
Indexer
Mariammal Chettiyar
Graphics
Disha Haria
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite
About the Author
Robert Dempsey is a tested leader and technology professional
who specializes in delivering solutions and products to solve tough
business challenges. His experience of forming and leading agile
teams, combined with more than 16 years of technology experience,
enables him to solve complex problems while always keeping the
bottom line in mind.
Robert has founded and built three start-ups in tech and marketing,
developed and sold two online applications, consulted for Fortune
500 and Inc. 500 companies, and has spoken nationally and
internationally on software development and agile project
management.
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade to
the eBook version at www.PacktPub.com and as a print book
customer, you are entitled to a discount on the eBook copy. Get in
touch with us at <service@packtpub.com> for more details.
https://www2.packtpub.com/books/subscription/packtlib
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can
use this to access PacktLib today and view 9 entirely free books.
Simply use your login credentials for immediate access.
Preface
Data! Everyone is surrounded by it, but few know how to truly exploit
it. For those who do, glory awaits!
Okay, so that's a little dramatic; however, being able to turn raw data
into actionable information is a goal that every organization is
working to achieve. This book helps you achieve it.
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com