YAXArrays.jl icon indicating copy to clipboard operation
YAXArrays.jl copied to clipboard

skipmissing and mapslices

Open Balinus opened this issue 1 year ago • 2 comments

Hello!

Is there an alternative syntax to use skipmissing using mapslices. Right now, the only syntax I have found in the documentation is

mapslices(mean ∘ skipmissing, a, dims="Ti")

Each time I need to use skipmissing, I have to go in the documentation to copy-paste the operator, because I don't know the shortcut for this symbol 😄

Balinus avatar Oct 25 '24 18:10 Balinus

\circ [tab]

😄

mapslices(x -> mean(skipmissing(x)), a, dims="Ti")

lazarusA avatar Oct 25 '24 18:10 lazarusA

Thanks! 😄

(the \circ works well on the REPL, but not on VS Code).

edit - For VS Code, installing Fast Unicode Math Characters extension solved my problem.

Balinus avatar Oct 28 '24 15:10 Balinus