Sujet : Re: help: pandas and 2d table
De : tjandacw (at) *nospam* gmail.com (Tim Williams)
Groupes : comp.lang.pythonDate : 13. Apr 2024, 18:14:35
Autres entêtes
Message-ID : <mailman.104.1713028490.3468.python-list@python.org>
References : 1 2 3 4 5
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>