lundi 15 février 2021

How to create a column in pandas dataframe using multiple conditions?

enter image description here[**

  1. enter image description here

**]

I want to create column

if C is > 1 then print charge_C

if Ck is > 1 , then print charge_Ck

i want to concatenate chargeC and Change_CK for creating new column.

Aucun commentaire:

Enregistrer un commentaire