Skip to Content
Python数据分析基础
book

Python数据分析基础

by Clinton W. Brownley
August 2017
Intermediate to advanced
274 pages
7h 44m
Chinese
Posts & Telecom Press
Content preview from Python数据分析基础
184
6
脚本生成的条形图和箱线图如图
6-6
所示。你可以在
pandas
绘图文档(
http://Pandas.
pydata.org/Pandas-docs/stable/visualization.html
)中学习到创建和设置统计图表的更多信息。
6-6
pandas
生成的并排放置的条形图和箱线图
6.3
 
ggplot
ggplot
是一个
Python
绘图包,它基于
R
语言的
ggplot2
包和图形语法。
ggplot
与其他绘
图包的关键区别是它的语法将数据与实际绘图明确地分离开来。为了对数据进行可视化表
示,
ggplot
提供了几种基本元素:几何对象、图形属性和标度。除此之外,为了进行更高
级的绘图,
ggplot
还提供一些附加元素:统计变换、坐标系、子窗口和可视化主题。要
想获得关于
ggplot
的详细信息,可以参考
Hadley Wickham
的著作《
ggplot2
:数据分析
与图形艺术(第
2
版)》,也可以参考
Leland Wilkinson
的著作:
Grammar of Graphics, 2nd
Edition
Springer
)。
Python
ggplot
库不像
R
语言的
ggplot2
库那样成熟,所以它不具备
ggplot2
的所有功
能,也就是说,它没有那么多的几何对象、统计变换和标度,也没有坐标系、注释和增强
功能。在与
ggplot
相关的包进行了升级与修改之后,使用
ggplot
也可能会遇到问题。例
图与图表
185
如,有一次我使用
ggplot
创建直方图时就遇到了问题,因为
pandas
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据驱动力:企业数据分析实战

数据驱动力:企业数据分析实战

Carl Anderson
大数据项目管理:从规划到实现

大数据项目管理:从规划到实现

Ted Malaska, Jonathan Seidman

Publisher Resources

ISBN: 9787115463357