Mar-22-2019, 11:05 AM
Hello there,
I'm kind of new with Python and sometimes I'm lacking some basics.
Here I want to regroup some modalities like them :
For column langue_navigateur
Français 88262
NA 9723
Anglais 1607
Turc 171
Portugais 158
Espagnol 88
Russe 86
Italien 60
Roumain 47
Polonais 47
Allemand 30
Chinois 27
Arabe 23
I want to obtain a output like this :
Français 88262
NA 9723
Others : sum of the others modalities (1607 + 171 +.... + 23)
I think I need a if else statement but I couldn't find the right code to obtain this.
Could you help me ? :)
Thanks.
I'm kind of new with Python and sometimes I'm lacking some basics.
Here I want to regroup some modalities like them :
For column langue_navigateur
Français 88262
NA 9723
Anglais 1607
Turc 171
Portugais 158
Espagnol 88
Russe 86
Italien 60
Roumain 47
Polonais 47
Allemand 30
Chinois 27
Arabe 23
I want to obtain a output like this :
Français 88262
NA 9723
Others : sum of the others modalities (1607 + 171 +.... + 23)
I think I need a if else statement but I couldn't find the right code to obtain this.
Could you help me ? :)
Thanks.