Helper functions

Besides the help() and dir() functions in Python and other online documentation, NumPy also provides a helper function, numpy.lookfor(), to help you find the right function you need. The argument is a string, and it can be in the form of a function name or anything related to it. Let's try to find out more about operations related to resize, which we took a look at in an earlier section:

In [71]: np.lookfor('resize') 
Search results for 'resize' 
--------------------------- 
numpy.ma.resize 
    Return a new masked array with the specified size and shape. 
numpy.chararray.resize 
    Change shape and size of array in-place. 
numpy.oldnumeric.ma.resize 
    The original array's total size can be any size. 
numpy.resize 
    Return a new array with the specified shape. 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.88.54