Ebook Learning Python Data Visualization

Learning Python Data Visualization
Learning Python Data Visualization

Download

THÔNG TIN TÀI LIỆU

Nhà xuất bản Packt Publishing
Tác giả Chad Adams
Số trang 212
Ngày xuất bản 2014
File PDF

NỘI DUNG TÀI LIỆU
Chapter 1: Setting Up Your Development Environment 7
Introduction 7
Setting up Python on Windows 7
Installation 9
Exploring the Python installation in Windows 15
Python editors 20
Setting up Python on Mac OS X 25
Setting up Python on Ubuntu 31
Summary 34

Chapter 2: Python Refresher 35
Python basics 35
Importing modules and libraries 40
Input and output 42
Generating an image 45
Creating SVG graphics using svgwrite 48
For Windows users using VSPT 48
For Eclipse or other editors on Windows 50
For Eclipse on Mac and Linux 50
Summary 59

Chapter 3: Getting Started with pygal 61
Why use pygal? 61
Installing pygal using pip 64
Installing pygal using Python Tools for Visual Studio 66
Building a line chart 67
Stacked line charts 69
Simple bar charts 71
Stacked bar charts 72
Horizontal bar charts 73
XY charts 74
Scatter plots 77
DateY charts 78
Summary 83

Chapter 4: Advanced Charts 85
Pie charts 85
Stacked pie charts 86
Radar charts 88
Box plots 89
Dot charts 91
Funnel charts 94
Gauge charts 96
Pyramid charts 98
Worldmap charts 101
Summary 104

Chapter 5: Tweaking pygal 105
Country charts 105
Parameters 108
Legend at the bottom 109
Legend settings 111
Label settings 116
Chart title settings 120
Displaying no data 123
pygal themes 124
Summary 126

Chapter 6: Importing Dynamic Data 127
Pulling data from the Web 127
The XML refresher 130
RSS and the ATOM 131
Understanding HTTP 131
Using HTTP in Python 132
Parsing XML in Python with HTTP 134
About JSON 136
Parsing JSON in Python with HTTP 136
About JSONP 143
JSONP with Python 144
Summary 144

Chapter 7: Putting It All Together 145
Chart usage for a blog 145
Getting our data in order 146
Converting date strings to dates 149
Using strptime 150
Saving the output as a counted array 156
Counting the array 158
Python modules 160
Building the main method 161
Modifying our RSS to return values 162
Building our chart module 163
Building a portable confguration for our chart 164
Setting up our chart for data 165
Confguring our main function to pass data 167
Project improvements 168
Summary 170

Chapter 8: Further Resources 171
The matplotlib library 171
Installing the matplotlib library 172
matplotlib’s library download page 173
Creating simple matplotlib charts 173
Plotly 179
Pyvot 186
Summary 187
Appendix: References and Resources 189
Links for help and support 189
Charting libraries 189
Editors and IDEs for Python 190
Other libraries and Python alternative shells 190

Be the first to comment

Leave a Reply

Your email address will not be published.

*