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

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.

主站蜘蛛池模板: 德阳市| 桐城市| 大名县| 石楼县| 闻喜县| 九寨沟县| 崇明县| 贡山| 夏邑县| 和田市| 呼伦贝尔市| 达日县| 隆化县| 阿巴嘎旗| 垦利县| 郴州市| 浦北县| 且末县| 六盘水市| 会昌县| 云霄县| 绥中县| 正镶白旗| 仁寿县| 常熟市| 湘乡市| 海林市| 武定县| 都兰县| 苍南县| 即墨市| 盐山县| 留坝县| 屏东市| 芦溪县| 通河县| 双城市| 信丰县| 九寨沟县| 青河县| 朝阳区|