MCPcopy Create free account
hub / github.com/dask/dask / swapaxes

Method swapaxes

dask/array/core.py:2916–2927  ·  view source on GitHub ↗

Return a view of the array with ``axis1`` and ``axis2`` interchanged. Refer to :func:`dask.array.swapaxes` for full documentation. See Also -------- dask.array.swapaxes : equivalent function

(self, axis1, axis2)

Source from the content-addressed store, hash-verified

2914 )
2915
2916 def swapaxes(self, axis1, axis2):
2917 """Return a view of the array with ``axis1`` and ``axis2`` interchanged.
2918
2919 Refer to :func:`dask.array.swapaxes` for full documentation.
2920
2921 See Also
2922 --------
2923 dask.array.swapaxes : equivalent function
2924 """
2925 from dask.array.routines import swapaxes
2926
2927 return swapaxes(self, axis1, axis2)
2928
2929 def round(self, decimals=0):
2930 """Return array with each element rounded to the given number of decimals.

Callers 2

_averageFunction · 0.80
test_swapaxesFunction · 0.80

Calls 1

swapaxesFunction · 0.90

Tested by 1

test_swapaxesFunction · 0.64