Answers for "print dtype of numpy array"

1

print dtype of numpy array

import numpy as np

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

# print the array data type
print(array.dtype)
Posted by: Guest on April-26-2022

Python Answers by Framework

Browse Popular Code Answers by Language