在好例子网,分享、交流、成长!
您当前所在位置:首页Python 开发实例Python语言基础 → NumPy Cookbook.pdf

NumPy Cookbook.pdf

Python语言基础

下载此实例
  • 开发语言:Python
  • 实例大小:2.47M
  • 下载次数:20
  • 浏览次数:137
  • 发布时间:2021-01-27
  • 实例类别:Python语言基础
  • 发 布 人:gong33
  • 文件格式:.pdf
  • 所需积分:2
 相关标签: Cookbook numpy co py

实例介绍

【实例简介】

【实例截图】

from clipboard

【核心代码】

Table of Contents
Preface 1
Chapter 1: Winding Along with IPython 5
Introduction 5
Installing IPython 6
Using IPython as a shell 8
Reading manual pages 10
Installing Matplotlib 11
Running a web notebook 12
Exporting a web notebook 14
Importing a web notebook 16
Configuring a notebook server 20
Exploring the SymPy profile 23
Chapter 2: Advanced Indexing and Array Concepts 25
Introduction 25
Installing SciPy 26
Installing PIL 28
Resizing images 29
Creating views and copies 32
Flipping Lena 34
Fancy indexing 36
Indexing with a list of locations 38
Indexing with booleans 40
Stride tricks for Sudoku 42
Broadcasting arrays 45
Chapter 3: Get to Grips with Commonly Used Functions 49
Introduction 50
Summing Fibonacci numbers 50
Finding prime factors 54
ii
Table of Contents
Finding palindromic numbers 56
The steady state vector determination 58
Discovering a power law 64
Trading periodically on dips 67
Simulating trading at random 70
Sieving integers with the Sieve of Erasthothenes 72
Chapter 4: Connecting NumPy with the Rest of the World 75
Introduction 75
Using the buffer protocol 76
Using the array interface 79
Exchanging data with MATLAB and Octave 80
Installing RPy2 82
Interfacing with R 82
Installing JPype 84
Sending a NumPy array to JPype 84
Installing Google App Engine 86
Deploying NumPy code in the Google cloud 88
Running NumPy code in a Python Anywhere web console 90
Setting up PiCloud 92
Chapter 5: Audio and Image Processing 95
Introduction 95
Loading images into memory map 96
Combining images 100
Blurring images 104
Repeating audio fragments 108
Generating sounds 110
Designing an audio filter 114
Edge detection with the Sobel filter 117
Chapter 6: Special Arrays and Universal Functions 121
Introduction 121
Creating a universal function 121
Finding Pythagorean triples 122
Performing string operations with chararray 124
Creating a masked array 125
Ignoring negative and extreme values 128
Creating a scores table with recarray 131
Chapter 7: Profiling and Debugging 135
Introduction 135
Profiling with timeit 135
Profiling with IPython 139
iii
Table of Contents
Installing line_profiler 142
Profiling code with line_profiler 143
Profiling code with the cProfile extension 144
Debugging with IPython 146
Debugging with pudb 148
Chapter 8: Quality Assurance 151
Introduction 151
Installing Pyflakes 151
Performing static analysis with Pyflakes 152
Analyzing code with Pylint 153
Performing static analysis with Pychecker 155
Testing code with docstrings 156
Writing unit tests 158
Testing code with mocks 162
Testing the BDD way 164
Chapter 9: Speed Up Code with Cython 169
Introduction 169
Installing Cython 170
Building a Hello World program 170
Using Cython with NumPy 172
Calling C functions 173
Profiling Cython code 175
Approximating factorials with Cython 178
Chapter 10: Fun with Scikits 183
Introduction 183
Installing scikits-learn 184
Loading an example dataset 184
Clustering Dow Jones stocks with scikits-learn 185
Installing scikits-statsmodels 189
Performing a normality test with scikits-statsmodels 190
Installing scikits-image 191
Detecting corners 191
Detecting edges 193
Installing Pandas 194
Estimating stock returns correlation with Pandas 195
Loading data as pandas objects from statsmodels 198
Resampling time series data 200
Index 205

标签: Cookbook numpy co py

实例下载地址

NumPy Cookbook.pdf

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警