官术网_书友最值得收藏!

Chapter 2. NumPy Arrays and Vectorized Computation

NumPy is the fundamental package supported for presenting and computing data with high performance in Python. It provides some interesting features as follows:

  • Extension package to Python for multidimensional arrays (ndarrays), various derived objects (such as masked arrays), matrices providing vectorization operations, and broadcasting capabilities. Vectorization can significantly increase the performance of array computations by taking advantage of Single Instruction Multiple Data (SIMD) instruction sets in modern CPUs.
  • Fast and convenient operations on arrays of data, including mathematical manipulation, basic statistical operations, sorting, selecting, linear algebra, random number generation, discrete Fourier transforms, and so on.
  • Efficiency tools that are closer to hardware because of integrating C/C++/Fortran code.

NumPy is a good starting package for you to get familiar with arrays and array-oriented computing in data analysis. Also, it is the basic step to learn other, more effective tools such as Pandas, which we will see in the next chapter. We will be using NumPy version 1.9.1.

主站蜘蛛池模板: 元朗区| 雷山县| 文山县| 盐边县| 武威市| 汉阴县| 临城县| 饶平县| 同德县| 奈曼旗| 五台县| 库伦旗| 尼玛县| 渑池县| 绍兴市| 辽阳市| 临漳县| 临高县| 沂水县| 抚宁县| 云林县| 阜新| 襄垣县| 华池县| 合作市| 衡山县| 五莲县| 蛟河市| 原阳县| 靖州| 大方县| 汤阴县| 集安市| 泗阳县| 利辛县| 汉源县| 清水河县| 长宁县| 融水| 多伦县| 梅河口市|