Python Data Science Essentials
eBook - ePub

Python Data Science Essentials

Alberto Boschetti, Luca Massaron

Share book
  1. 258 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Python Data Science Essentials

Alberto Boschetti, Luca Massaron

Book details
Book preview
Table of contents
Citations

About This Book

About This Book

  • Quickly get familiar with data science using Python
  • Save tons of time through this reference book with all the essential tools illustrated and explained
  • Create effective data science projects and avoid common pitfalls with the help of examples and hints dictated by experience

Who This Book Is For

If you are an aspiring data scientist and you have at least a working knowledge of data analysis and Python, this book will get you started in data science. Data analysts with experience of R or MATLAB will also find the book to be a comprehensive reference to enhance their data manipulation and machine learning skills.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Python Data Science Essentials an online PDF/ePUB?
Yes, you can access Python Data Science Essentials by Alberto Boschetti, Luca Massaron in PDF and/or ePUB format, as well as other popular books in Informatik & Programmierung in Python. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781785287893

Python Data Science Essentials


Table of Contents

Python Data Science Essentials
Credits
About the Authors
About the Reviewers
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
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. First Steps
Introducing data science and Python
Installing Python
Python 2 or Python 3?
Step-by-step installation
A glance at the essential Python packages
NumPy
SciPy
pandas
Scikit-learn
IPython
Matplotlib
Statsmodels
Beautiful Soup
NetworkX
NLTK
Gensim
PyPy
The installation of packages
Package upgrades
Scientific distributions
Anaconda
Enthought Canopy
PythonXY
WinPython
Introducing IPython
The IPython Notebook
Datasets and code used in the book
Scikit-learn toy datasets
The MLdata.org public repository
LIBSVM data examples
Loading data directly from CSV or text files
Scikit-learn sample generators
Summary
2. Data Munging
The data science process
Data loading and preprocessing with pandas
Fast and easy data loading
Dealing with problematic data
Dealing with big datasets
Accessing other data formats
Data preprocessing
Data selection
Working with categorical and textual data
A special type of data – text
Data processing with NumPy
NumPy's n-dimensional array
The basics of NumPy ndarray objects
Creating NumPy arrays
From lists to unidimensional arrays
Controlling the memory size
Heterogeneous lists
From lists to multidimensional arrays
Resizing arrays
Arrays derived from NumPy functions
Getting an array directly from a file
Extracting data from pandas
NumPy fast operation and computations
Matrix operations
Slicing and indexing with NumPy arrays
Stacking NumPy arrays
Summary
3. The Data Science Pipeline
Introducing EDA
Feature creation
Dimensionality reduction
The covariance matrix
Principal Component Analysis (PCA)
A variation of PCA for big data – RandomizedPCA
Latent Factor Analysis (LFA)
Linear Discriminant Analysis (LDA)
Latent Semantical Analysis (LSA)
Independent Component Analysis (ICA)
Kernel PCA
Restricted Boltzmann Machine (RBM)
The detection and treatment of outliers
Univariate outlier detection
EllipticEnvelope
OneClassSVM
Scoring functions
Multilabel classification
Binary classification
Regression
Testing and validating
Cross-validation
Using cross-validation iterators
Sampling and bootstrapping
Hyper-parameters' optimization
Building custom scoring functions
Reducing the grid search runtime
Feature selection
Univariate selection
Recursive elimination
Stability and L1-based selection
Summary
4. Machine Learning
Linear and logistic regression
Naive Bayes
The k-Nearest Neighbors
Advanced nonlinear algorithms
SVM for classification
SVM for regression
Tuning SVM
Ensemble strategies
Pasting by random samples
Bagging with weak ensembles
Random Subspaces and Random Patches
Sequences of models – AdaBoost
Gradient tree boosting (GTB)
Dealing with big data
Creating some big datasets as examples
Scalability with volume
Keeping up with velocity
Dealing with variety
A quick overview of Stochastic Gradient Descent (SGD)
A peek into Natural Language Processing (NLP)
Word tokenization
Stemming
Word Tagging
Named Entity Recognition (NER)
Stopwords
A complete data science example – text classification
An overview of unsupervised learning
Summary
5. Social Network Analysis
Introduction to graph theory
Graph algorithms
Graph loading, dumping, and sampling
Summary
6. Visualization
Introducing the basics of matplotlib
Curve plotting
Using panels
Scatterplots
Histograms
Bar graphs
Image visualization
Selected graphical examples with pandas
Boxplots and histograms
Scatterplots
Parallel coordinates
Advanced data learning representation
Learning curves
Validation curves
Feature importance
GBT partial dependence plot
Summary
Index

Python Data Science Essentials

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
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 authors, 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.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2015
Production reference: 1240415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-042-9
www.packtpub.com

Credits

Authors
Alberto Boschetti
Luca Massaron
Reviewers
Robert Dempsey
Daniel Frimer
Kevin Markham
Alberto Gonzalez Paje
Bastiaan Sjardin
Michele Usuelli
Zacharias Voulgaris, PhD
Commissioning Editor
Julian Ursell
Acquisition Editor
Subho Gupta
Content Development Editor
Merwyn D'souza
Technical Editor
Namrata Patil
Copy Editor
Vedangi Narvekar
Project Coordinator
Neha Bhatnagar
Proofreaders
Simran Bhogal
Faye Coulman
Safis Editing
Dan McMahon
Indexer
Priya Sane
Production Coordinator
Komal Ramchandani
Cover Work
Komal Ramchandani

About the Authors

Alberto Boschetti is a data scientist with expertise in signal processing and stat...

Table of contents