新書推薦:
《
东野圭吾:变身(来一场真正的烧脑 如果移植了别人的脑子,那是否还是我自己)
》
售價:NT$
295.0
《
严复与福泽谕吉启蒙思想比较(王中江著作系列)
》
售價:NT$
750.0
《
甘于平凡的勇气
》
售價:NT$
225.0
《
存在与结构:精神分析的法国转向——以拉康与萨特为中心
》
售價:NT$
240.0
《
生成式人工智能:AIGC与多模态技术应用实践指南
》
售價:NT$
495.0
《
石油帝国的兴衰:英国的工业化与去工业化
》
售價:NT$
445.0
《
古典的回響:溪客舊廬藏明清文人繪畫
》
售價:NT$
1990.0
《
根源、制度和秩序:从老子到黄老学(王中江著作系列)
》
售價:NT$
550.0
|
內容簡介: |
本书结合作者多年工程和实践经验,从Python 基础编程语法入手,系统介绍了基于Python 语言进行数据处理、分析与可视化展示所需的各项知识和技术。读者无须特别的数学或统计方面的理论知识,只需理解数据分析的思路,就可以参考示例学会针对实际问题进行有效数据分析的步骤和方法。 本书分4 篇共20 章,主要内容涉及Python 基本语法、程序控制结构、函数、面向对象基础、文件操作、标准库、正则表达式、numpy 库、pandas 库、数据预处理、matplotlib 可视化图表、seaborn可视化图表、pyecharts 可视化图表、SciPy 科学计算、共享自行车案例及在线销售案例。
|
關於作者: |
唐艺,助理研究员,长期从事计算机应用、信息系统的教学与科研工作,作为课题负责人申报省部级课题10余项。
|
目錄:
|
篇 Python 基础第1 章 Python 概述 ······················.21.1 Python 简介 ······························.21.1.1 Python 的起源 ··················.21.1.2 Python 的发展 ··················.21.2 Python 解释器 ···························.31.2.1 安装Python 解释器 ···········.31.2.2 交互运行模式 ··················.41.2.3 命令行运行模式 ···············.41.3 集成开发环境PyCharm ················.51.3.1 安装PyCharm ··················.51.3.2 创建项目 ························.71.3.3 创建并运行Python 文件 ·····.8第2 章 Python 编程基础 ················102.1 常量和变量 ·······························102.1.1 常量和变量的定义 ············102.1.2 变量命名规则 ··················102.2 简单数据类型 ···························.112.2.1 数值类型 ·······················.112.2.2 字符串 ···························122.2.3 None ·····························132.2.4 布尔类型 ························142.2.5 数据类型转换 ··················142.3 算术运算 ··································152.4 赋值运算符 ·······························162.5 字符串相关运算 ·························172.5.1 字符串连接运算 ···············172.5.2 字符串截取 ·····················182.6 输出 ········································182.6.1 print 函数的基本用法 ········192.6.2 print 函数格式化输出 ········202.7 输入 ········································232.8 程序注释 ··································23第3 章 程序控制结构 ····················253.1 选择结构 ··································253.1.1 条件表达式 ·····················253.1.2 单分支结构if 语句············273.1.3 二分支结构if-else 语句 ······273.1.4 多分支结构if-elif-else语句 ······························293.2 循环结构 ··································313.2.1 for 语句实现遍历循环 ········313.2.2 while 语句实现条件循环 ····333.2.3 循环结构中的else 语句 ······353.2.4 break 语句和continue语句 ······························36第4 章 组合数据类型 ····················394.1 列表 ········································394.1.1 列表的表示与访问列表元素 ······························394.1.2 遍历列表 ························404.1.3 添加列表元素 ··················424.1.4 删除列表元素 ··················444.1.5 列表排序 ························454.2 元组 ········································464.3 字典 ········································474.3.1 创建字典 ························484.3.2 添加和删除键值对 ············494.3.4 遍历字典 ························494.3.5 字典嵌套 ························50第5 章 函数 ································525.1 函数的定义和调用 ······················525.2 函数参数传递 ····························545.3 列表作为函数参数 ······················575.3.1 简单数据类型参数传递值 ···························575.3.2 组合数据类型参数公用存储空间 ··················575.3.3 组合数据类型的数据作为函数参数的应用 ·········585.4 模块 ········································595.4.1 创建模块 ························595.4.2 导入模块 ························60第6 章 类和对象 ··························636.1 类和对象的概念 ·························636.2 定义只具有方法的类和对象 ··········646.2.1 定义类 ···························646.2.2 实例化对象 ·····················656.3 对象初始化方法及属性 ················666.3.1 对象初始化方法_ _init_ _() ······················666.3.2 定义类的属性 ··················666.3.3 访问对象属性 ··················676.3.4 输出对象的描述信息 ·········686.3.5 封装性 ···························696.4 类和对象应用实例 ······················696.5 类的继承 ··································706.5.1 继承的定义 ·····················706.5.2 _init_ _() 方法的继承 ·······726.5.3 重写父类方法 ··················73第7 章 文件操作 ··························747.1 基本操作 ··································747.2 打开文件 ··································757.2.1 文件指针 ························757.2.2 打开方式 ························767.3 读取文件 ··································777.4 写入文件 ··································787.4.1 使用write() 方法向文件中写入内容 ························787.4.2 使用write() 方法向文件中追加内容 ························797.5 读写CSV 文件 ··························807.5.1 读取数据 ························807.5.2 写入数据 ························81第8 章 常用Python 标准库 ············838.1 datetime 模块 ·····························838.1.1 date 类 ···························838.1.2 time 类 ···························868.1.3 datetime 类 ······················868.1.4 timedelta 类 ·····················878.1.5 时间转化 ························888.1.6 设置日期时间格式 ············888.2 math 模块 ·································898.3 random 模块 ······························908.4 os 模块 ····································92第二篇 数 据 分 析第9 章 正则表达式 ·······················989.1 正则表达式中的元字符 ················989.1.1 主要元字符
|
|