Skip to content
Advertisement

Tag: pandas-merge

Pandas Merge to Determine if Value exists

I have checklist form data coming into a spreadsheet that I am trying to determine if a specific value was not checked and provide info based off that. My first thought was to have a master list/df where all the form values are then do a left/right merge on each response to determine values that weren’t there. Sample data and

Pandas convert dummies to a new column

I have a dataframe that discretize the customers into different Q’s, which looks like: What I want to do is adding a new column, Q, to the dataframe which shows which sector this customer is in, so it looks like: The only way I can think about is using for loop but it will give me a mess. Any other

Advertisement