- 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:

推薦閱讀
- Getting Started with CreateJS
- Learning Linux Binary Analysis
- Java性能權威指南(第2版)
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- Swift細致入門與最佳實踐
- C語言程序設計實驗指導 (第2版)
- CoffeeScript Application Development Cookbook
- Android嵌入式系統程序開發:基于Cortex-A8(第2版)
- Java程序設計與項目案例教程
- Python商務數據分析(微課版)
- Hands-On Robotics Programming with C++
- 人人都能開發RPA機器人:UiPath從入門到實戰
- WordPress Search Engine Optimization(Second Edition)
- Professional JavaScript
- SAS編程演義