NumPy-NaNs durch letzten Nicht-NaN-Wert ersetzen
Verwende bottleneck.push:
replace_nans_bottleneck.py
import bottleneck
y = bottleneck.push(y, axis=0)Falls noch nicht installiert, kannst du bottleneck installieren mit
install_bottleneck.py
pip install bottleneckCheck out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow