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

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.

主站蜘蛛池模板: 易门县| 綦江县| 淳安县| 鹤峰县| 黑山县| 三都| 平塘县| 普陀区| 尉氏县| 朝阳区| 五莲县| 屯留县| 衡山县| 巴马| 绍兴市| 湖南省| 延安市| 沁源县| 瑞昌市| 泸西县| 宝坻区| 平乡县| 都江堰市| 北川| 德安县| 无锡市| 宁海县| 神池县| 沙田区| 巴马| 尼木县| 普安县| 蕉岭县| 巩义市| 延津县| 建宁县| 辽宁省| 长阳| 新闻| 开化县| 扎囊县|