Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created January 19, 2021 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/8a8816bc61036199ebd09c42628bc0ca to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/8a8816bc61036199ebd09c42628bc0ca to your computer and use it in GitHub Desktop.
import numpy as np
a1=np.ones([1,2])
print (a1)
#Output:[[1. 1.]]
a2=np.ones([1,2],dtype=int)
print (a2)
#Output:[[1 1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment