- Matplotlib 2.x By Example
- Allen Yu Claire Chung Aldrin Yim
- 83字
- 2021-07-02 19:34:33
Numpy array
Very often, we deal with more complex data. If you need a matrix with multiple columns or want to perform mathematical operations over all elements in a collection, then numpy is for you:
import numpy as np
We abbreviated numpy to np by convention, keeping our code succinct.
np.array() converts a supported data type, a list in this case, into a Numpy array. To produce a numpy array from our evens list, we do the following:
np.array(evens)
推薦閱讀
- C# Programming Cookbook
- Neo4j Essentials
- 重學Java設計模式
- 3D少兒游戲編程(原書第2版)
- SSM輕量級框架應用實戰
- Couchbase Essentials
- Learning Hadoop 2
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- Fastdata Processing with Spark
- Hacking Android
- 你真的會寫代碼嗎
- C語言程序設計教程
- 微信小程序開發邊做邊學(微課視頻版)
- Beginning C# 7 Hands-On:The Core Language
- Swift Essentials(Second Edition)