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

Method swapaxes

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

2911 )
2912
2913 def swapaxes(self, axis1, axis2):
2914 """Return a view of the array with ``axis1`` and ``axis2`` interchanged.
2915
2916 Refer to :func:`dask.array.swapaxes` for full documentation.
2917
2918 See Also
2919 --------
2920 dask.array.swapaxes : equivalent function
2921 """
2922 from dask.array.routines import swapaxes
2923
2924 return swapaxes(self, axis1, axis2)
2925
2926 def round(self, decimals=0):
2927 """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