Код: Выделить всё
use crate::indicators::ema::core_ema;
use numpy::{PyArray1, PyArrayMethods};
use pyo3::pyfunction;
#[pyfunction(signature = (data, window_size = 14, alpha = None))]
pub(crate) fn ema,
data: numpy::PyReadonlyArray1
Подробнее здесь: [url]https://stackoverflow.com/questions/79650301/is-it-sound-to-use-a-slice-of-numpypyreadonlyarray-inside-pyo3allow-threads[/url]