Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

dtype array

import numpy as np

# Example of 1D array 
array = np.linspace(3,40,40)

# print the array data type
print(array.dtype)
Comment

specify dtype when creating array

x = np.array( [1.0,2.1], dtype=float)
Comment

PREVIOUS NEXT
Code Example
Python :: get the factorial of a number on python 
Python :: input function in django 
Python :: ejercicios con def en python 
Python :: pandas save csv list as columns 
Python :: simplest flask memcached 
Python :: 2sf python 
Python :: gfrequency listing in pandas 
Python :: dargon 
Python :: how to use drop for file in python 
Python :: get derivative of interp1d 
Python :: group your data columns by their data types 
Python :: columnspan vs column tkinter 
Python :: pandas use map lambda to fillna python 
Python :: for loop shorthand python 
Python :: ggt euklidischer algorithmus python 
Python :: weighted averae multiple columns 
Python :: one liner if else replacement in python 
Python :: sklearn random forest feature importance 
Python :: features and image recongnition 
Python :: numpy count occurrences in interval array 
Python :: norm 2 or ocklidos of matrix in python 
Python :: astype oandas 
Python :: gravar arquivo python 
Python :: if condition python with index 
Python :: Print to the text file using inline file argument 
Python :: japanese translator google 
Python :: all classification algorithim compare 
Python :: python save console state 
Python :: standard destructuring assignments in python 
Python :: Regression model build 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =