Deutsch   English   Français   Italiano  
<tbojcg$1u6sm$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Carboleum <c4rboleum@gmail.com.invalid>
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: <tbojcg$1u6sm$1@dont-email.me>
References: <duOdnQj_K-DtGkP_nZ2dnUU7_83NnZ2d@giganews.com>
 <tbo20m$1pnml$1@dont-email.me>
 <rP2dnYmvr4spNUL_nZ2dnUU7_8zNnZ2d@giganews.com>
 <tbog1e$1t8n8$1@dont-email.me>
 <FMidnSG7NYq-UEL_nZ2dnUU7_83NnZ2d@giganews.com>
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: <FMidnSG7NYq-UEL_nZ2dnUU7_83NnZ2d@giganews.com>
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