out[ ]dtype('int 'in addition to np arraythere are number of other functions for creating new arrays as exampleszeros and ones create arrays of ' or 'srespectivelywith given length or shape empty creates an array without initializing its values to any particular value to create higher dimensional array with these methodspass tuple for the shapein [ ]np zeros( out[ ]array( in [ ]np zeros(( )out[ ]array([ in [ ]np empty(( )out[ ]array([[ - - - - ] - ] - ]][ + - + + - ]- - ] + ]]] ] ] ] ]]it' not safe to assume that np empty will return an array of all zeros in many casesas previously shownit will return uninitialized garbage values arange is an array-valued version of the built-in python range functionin [ ]np arange( out[ ]array( ]see table - for short list of standard array creation functions since numpy is focused on numerical computingthe data typeif not specifiedwill in many cases be float (floating pointtable - array creation functions function description array convert input data (listtuplearrayor other sequence typeto an ndarray either by inferring dtype or explicitly specifying dtype copies the input data by default asarray convert input to ndarraybut do not copy if the input is already an ndarray arange like the built-in range but returns an ndarray instead of list onesones_like produce an array of all ' with the given shape and dtype ones_like takes another array and produces ones array of the same shape and dtype zeroszeros_like like ones and ones_like but producing arrays of ' instead numpy basicsarrays and vectorized computation www it-ebooks info