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

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.

主站蜘蛛池模板: 普安县| 神木县| 临江市| 察雅县| 邢台县| 神木县| 汝南县| 嘉祥县| 禹州市| 浙江省| 措美县| 沂源县| 中西区| 延川县| 英山县| 青铜峡市| 武夷山市| 丰县| 远安县| 安福县| 巴马| 和平县| 勐海县| 扎兰屯市| 宜兰市| 曲阳县| 务川| 林芝县| 惠州市| 汨罗市| 北票市| 博乐市| 乌海市| 萨迦县| 恩平市| 嵊州市| 宜城市| 江西省| 罗山县| 通城县| 许昌县|