Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Carboleum Newsgroups: fr.comp.lang.python Subject: Re: Comparer deux colonnes avec pandas Date: Tue, 26 Jul 2022 13:32:32 +0200 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 26 Jul 2022 11:32:32 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="920e203395f3ce0ce4935973ae37ecd6"; logging-data="2038678"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mP6gr2nec/QrSS5uM9LKw" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0.3 Cancel-Lock: sha1:lJigBFbWZl+UD+AoRHHRKbwU+NU= In-Reply-To: X-Antivirus: Avast (VPS 220726-0, 26-7-2022), Outbound message X-Antivirus-Status: Clean Content-Language: fr Bytes: 1886 Le 26-07-22 à 13:16, gigi123 a écrit : > Effectivement en y ajoutant np.nan je n'ai plus d'erreur et ça fonctionne bien. > Mais comment faire pour qu'il fasse une boucle dans la colonne B tanrt que c'est > pas égal? j'ai pas bien compris, mais j'imagine que c'est un truc du genre: df.result.where(df.result).loc[0] j'ai pas testé non plus ;-) -- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus