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

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.

主站蜘蛛池模板: 梓潼县| 濉溪县| 张家界市| 石门县| 台东市| 玉林市| 白山市| 湘乡市| 黄冈市| 麻栗坡县| 宝鸡市| 长丰县| 西林县| 米林县| 伊宁县| 库车县| 于田县| 吴川市| 伊宁市| 贵定县| 分宜县| 峨山| 托克托县| 调兵山市| 定襄县| 彝良县| 双城市| 托克逊县| 遂平县| 二连浩特市| 绥滨县| 仁布县| 大田县| 区。| 息烽县| 桐乡市| 博客| 黄平县| 海宁市| 永平县| 漯河市|