Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: loop to regroup modality of a variable
Post: RE: loop to regroup modality of a variable

Hmmm I will try thanks. So useful for manipulating quanti variable with many modalities.
LoliMarth General Coding Help 11 5,812 Mar-26-2019, 08:02 AM
    Thread: loop to regroup modality of a variable
Post: RE: loop to regroup modality of a variable

I didn't thought about this solution but it work ! I made this : Quote:Y.loc[:,"NvxY"] = "OTHERS" df.loc[(df["Y"] == "Français") ,"NvxY"] = "Français" df.loc[(df["Y"] == "NA") ,"NvxY"] = "NA" And I...
LoliMarth General Coding Help 11 5,812 Mar-25-2019, 03:18 PM
    Thread: loop to regroup modality of a variable
Post: RE: loop to regroup modality of a variable

Yeah, that's work,this is great ! :) I understand how it work, it's a nice trick. Thanks ! But it doesn't create a another variable with the new modalities though. My first goal would be to obtain...
LoliMarth General Coding Help 11 5,812 Mar-25-2019, 12:28 PM
    Thread: loop to regroup modality of a variable
Post: RE: loop to regroup modality of a variable

I will try :)
LoliMarth General Coding Help 11 5,812 Mar-25-2019, 07:58 AM
    Thread: loop to regroup modality of a variable
Post: RE: loop to regroup modality of a variable

I'm sorry, I understand what you're saying but I didn't quite undrstood how to do that. *Assign 0 to a result variable before the loop. Ok for this Quote:j = 0 Iterate in a loop over the lines w...
LoliMarth General Coding Help 11 5,812 Mar-22-2019, 12:38 PM
    Thread: loop to regroup modality of a variable
Post: RE: loop to regroup modality of a variable

In the beginning I made this kind of code : Quote:transfosupport = { "Ordinateur" : "Ordinateur", "Smartphone" : "Smartphone", "NA" : "NA", "Tablette" : "Tablette Co...
LoliMarth General Coding Help 11 5,812 Mar-22-2019, 11:24 AM
    Thread: loop to regroup modality of a variable
Post: loop to regroup modality of a variable

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...
LoliMarth General Coding Help 11 5,812 Mar-22-2019, 11:05 AM
    Thread: How to count value after a textblob
Post: How to count value after a textblob

Hello there, I made a textblob with this piece of code : info = dataextract['Produit'] .apply(lambda x: TextBlob(x).ngrams(3)) My variable Produit -> https://image.noelshack.com/fichiers/201...a...
LoliMarth General Coding Help 1 2,308 Mar-20-2019, 09:03 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020