- Learning pandas(Second Edition)
- Michael Heydt
- 94字
- 2021-07-02 20:37:09
Creation using NumPy functions
It is a common practice to initialize the Series object's various NumPy functions. As an example, the following uses the NumPy np.arange function to create a sequence of integer values between 4 and 8:

The np.linspace() method is similar in functionality but allows us to specify the number of values to be created between (and including) the two specified values, and with a specified number of steps:

It is also common to generate a set of random numbers using np.random.normal(). The following generates five random numbers from a normal distribution:

推薦閱讀
- Visual Basic .NET程序設計(第3版)
- Oracle從新手到高手
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- C語言程序設計教程(第2版)
- Mastering Apache Spark 2.x(Second Edition)
- Mastering Unity 2D Game Development(Second Edition)
- Learning Apache Cassandra
- Django 3.0入門與實踐
- C++語言程序設計
- Python機器學習算法與應用
- Android Game Programming by Example
- AI自動化測試:技術原理、平臺搭建與工程實踐
- Elasticsearch搜索引擎構建入門與實戰
- 3D Printing Designs:Design an SD Card Holder
- Web程序設計與架構