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

Method swapaxes

dask/array/core.py:2924–2935  ·  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

2922 )
2923
2924 def swapaxes(self, axis1, axis2):
2925 """Return a view of the array with ``axis1`` and ``axis2`` interchanged.
2926
2927 Refer to :func:`dask.array.swapaxes` for full documentation.
2928
2929 See Also
2930 --------
2931 dask.array.swapaxes : equivalent function
2932 """
2933 from dask.array.routines import swapaxes
2934
2935 return swapaxes(self, axis1, axis2)
2936
2937 def round(self, decimals=0):
2938 """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