On Sat, Apr 13, 2024 at 1:10 PM Mats Wichmann via Python-list < python-list@python.org> wrote:
> On 4/13/24 07:00, jak via Python-list wrote: > > doesn't Pandas have a "where" method that can do this kind of thing? Or > doesn't it match what you are looking for? Pretty sure numpy does, but > that's a lot to bring in if you don't need the rest of numpy. > > pandas.DataFrame.where — pandas 2.2.2 documentation (pydata.org) <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.where.html#pandas.DataFrame.where> -- https://mail.python.org/mailman/listinfo/python-list