nanmean
Performs a NaN
skipping mean operation along the given axes. Uses all axes by default.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x
|
SparseArray
|
The array to perform the reduction on. |
required |
axis
|
Union[int, Iterable[int]]
|
The axes along which to compute the mean. Uses all axes by default. |
None
|
keepdims
|
bool_
|
Whether or not to keep the dimensions of the original array. |
False
|
dtype
|
dtype
|
The data type of the output array. |
None
|
Returns:
Type | Description |
---|---|
COO
|
The reduced output sparse array. |
See Also
sparse.COO.mean
: Function withoutNaN
skipping.numpy.nanmean
: Equivalent Numpy function.
Source code in sparse/numba_backend/_coo/common.py
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
|