Showing posts with label where () function in numpy. Show all posts
Showing posts with label where () function in numpy. Show all posts

Wednesday, July 15

meshgrid and where functions in Numpy

meshgrid () :-
     => It takes two 1D arrays and produces two 2D matrices corresponding to all pairs for (x,y) in             the two arrays.

            


where () :-
    => The numpy.where() function is a vectorized version of the ternary expression .
                ex : x if condition else y .

            
            

    

Are you looking for ......