NumPy arrays arithmetic operations

原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12244981.html

vectorization

Arrays are important because they enable you to express batch operations on data without writing any for loops. NumPy users call this vectorization. Any arithmetic operations between equal-size arrays applies the operation element-wise:

Comparisons between arrays of the same size yield boolean arrays:

Reference

Python for Data Analysis Second Edition

原文地址:https://www.cnblogs.com/agilestyle/p/12244981.html