原创转载请注明出处: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:

NumPy arrays arithmetic operations

Comparisons between arrays of the same size yield boolean arrays:

NumPy arrays arithmetic operations

 

Reference

Python for Data Analysis Second Edition

相关文章:

  • 2021-06-24
  • 2022-02-28
  • 2022-01-11
  • 2021-12-13
  • 2022-12-23
  • 2022-01-09
  • 2022-02-16
  • 2021-07-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案