Professional Documents
Culture Documents
Preface v
Chapter 1: Python for Data Science 1
Introduction 2
Using dictionary objects 2
Working with a dictionary of dictionaries 6
Working with tuples 7
Using sets 12
Writing a list 15
Creating a list from another list - list comprehension 19
Using iterators 22
Generating an iterator and a generator 24
Using iterables 26
Passing a function as a variable 27
Embedding functions in another function 28
Passing a function as a parameter 29
Returning a function 30
Altering the function behavior with decorators 31
Creating anonymous functions with lambda 34
Using the map function 35
Copyright © 2015. Packt Publishing, Limited. All rights reserved.
Gopi, Subramanian. Python Data Science Cookbook, Packt Publishing, Limited, 2015. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/manchester/detail.action?docID=4191189.
Created from manchester on 2020-07-07 02:48:13.
Table of Contents
Introduction 185
Working with distance measures 186
Learning and using kernel methods 192
Clustering data using the k-means method 196
Learning vector quantization 202
Finding outliers in univariate data 208
Discovering outliers using the local outlier factor method 216
ii
Gopi, Subramanian. Python Data Science Cookbook, Packt Publishing, Limited, 2015. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/manchester/detail.action?docID=4191189.
Created from manchester on 2020-07-07 02:48:13.
Table of Contents
iii
Gopi, Subramanian. Python Data Science Cookbook, Packt Publishing, Limited, 2015. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/manchester/detail.action?docID=4191189.
Created from manchester on 2020-07-07 02:48:13.
Copyright © 2015. Packt Publishing, Limited. All rights reserved.
Gopi, Subramanian. Python Data Science Cookbook, Packt Publishing, Limited, 2015. ProQuest Ebook Central, http://ebookcentral.proquest.com/lib/manchester/detail.action?docID=4191189.
Created from manchester on 2020-07-07 02:48:13.