Chapter 1. Preliminaries

Essential Python Libraries

  • NumPy

  • pandas

  • matplotlib

  • SciPy


NumPy

fundamental package for scientific computing

contains a powerful N-dimensional array object, also as the primary container for data to be passed between algorithms regards to data analysis

  • reading/writing array-based data sets to disk
  • element-wise computations with array
  • mathematical operations between arrays
  • linear algebra, Fourier transform, random number generation
  • tools for integrating lower-level language can operate on the data stored in NumPy array without coping/modifying any data

pandas by Wes Mckinney

rich data structures (DataFrame, Index and Series etc.) and functions

primary data structure/object in pandas is DataFrame, which is 2-dimensional tabular and column oriented

well-suited for financial data: time series, which is exactly Wes Mckinney create pandas for

  • NumPy: array computing features
  • spreadsheet: flexible data manipulation
  • rational database, such as SQL
  • sophisticated indexing functionality: easy to reshape, slice, dice, aggregations, select subsets

matplotlib by John D. Hunter

producing plots and other 2D data visualizations


SciPy

collection of packages for scientific computation

  • scipy.integrate: integrate/differential
  • scipy.linalg: linear algebra, matrix decompositions beyond numpy.linalg
  • scipy.optimize: function optimazers/minimizers, root finding
  • scipy.signal: signal processing
  • scipy.sparse: sparse matrices, sparse linear system
  • scipy.special: wrapper around SPECFUN, a Fortran library implementing many common mathematical functions, such as the gamma function
  • scipy.stats: probability distributions, statistical tests
  • scipy.weave: tools for using inline C++ to accelerate array computations
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 3
    DidorDone阅读 1,274评论 0 0
  • 第一天走上讲台的菜鸟老师第一句话本来应该是她准备了一个星期的那句话“同学们早上好,上课”结果一紧张就变成了“起立”...
    雪球球阅读 4,542评论 3 2
  • 影视作品准则 带大眼镜的都是美女
    奉京钓钓生阅读 1,157评论 0 0
  • (一) 风陵渡口初相遇, 一见杨过误终身。 只恨我生君已老, 断肠崖前忆故人。(林燕妮) 早年看《神雕侠侣》很为杨...
    66b1aaeb01d3阅读 11,294评论 1 12
  • 使用 Matplotlib 绘图 绘制多项式函数 绘制多项式函数及其导函数 分别绘制多项式函数及其导数 K 线图 ...
    布客飞龙阅读 4,791评论 4 6