Skip to content

Instantly share code, notes, and snippets.

@Rich700000000000
Created January 21, 2018 07:09
Show Gist options
  • Save Rich700000000000/1fb429b67bd6bbd370e3c37c1f2392e4 to your computer and use it in GitHub Desktop.
Save Rich700000000000/1fb429b67bd6bbd370e3c37c1f2392e4 to your computer and use it in GitHub Desktop.
Inform
def aBaR(n,e,f=None):
if f == None:
try:
print ("Array: {}\nType: {}\nShape: {}\nLength: {}\nFirst Data: {}\n".format(n,type(e),str(np.shape(e)),len(e),str(e[0])))
except IndexError:
print ("Array: {}\nType: {}\nShape: {}\nLength: {}\n".format(n,type(e),str(np.shape(e)),len(e)))
else:
print ("Array: {}\nType: {}\nShape: {}\nLength: {}\nData: {}\n".format(n,type(e),str(np.shape(e)),len(e),str(e)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment