On Mon, May 20, 2024 at 9:06 AM Raquel Braunschweig via NumPy-Discussion <numpy-discussion@python.org> wrote: > > Hello everyone, > > My colleague and I will be opening a Pull Request (PR) about adding bfill() > (backward fill) function to NumPy. This function is designed to fill NaN > values in an array by propagating the next valid observation backward along a > specified axis. We believe this addition will be highly useful for data > preprocessing and manipulation tasks.
This was proposed earlier this year in this issue: https://github.com/numpy/numpy/issues/25823 Take note of rkern's comment in that issue; I think most NumPy developers will agree with what he says there. Warren > > Here are some key points regarding our proposed implementation: > > Function Explanation: The bfill() function identifies NaN values in an array > and replaces them by copying the next valid value in the array backwards. > Users can specify the axis along which the filling should be performed, > providing flexibility for different data structures. > Use Cases: This function is particularly beneficial in time series analysis, > data cleaning, and preparing datasets for machine learning models. > > We are looking forward to your feedback and suggestions. > > Thank you for your attention and we appreciate your support. > > Best regards, > Raquel and Gonçalo > _______________________________________________ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: warren.weckes...@gmail.com _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com