printarr#
- printarr(arr, fmt=None, colsep=' ', vsep='—', decimals=2, doprint=True, dtype=None)[source]#
Print a numpy array nicely.
- Parameters:
Examples:
numeric = np.random.randn(3,7,4)**10 mixed = np.array([['cat', 'nudibranch'], [23, 2423482]], dtype=object) sc.printarr(numeric) sc.printarr(mixed)
New in version 2.0.3: “fmt”, “colsep”, “vsep”, “decimals”, and “dtype” arguments New in version 3.0.0: “doprint” argument