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
    强者自救 圣者渡人
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号