Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Split Column by comma and then adding it back onto the original column associated with the email

$
0
0

Dataset:Each customer has an email account with us. Each email account can have multiple in-app accounts associated to the email.

Sample Dataset:

account_idcustomer_email
[1,2]junglehouse1@yahoo.com
[23,68]nycdeepms23@me.com
[10,5]azn34girl@gmail.com
[123,4]syeedygonzalez@gmail.com
129fight-me@hotmail.com
126azulescielos@gmail.com
34bakahbkah@gmail.com
[68,4]finale341040@gmail.com

Ideal Output:

account_idcustomer_email
1junglehouse1@yahoo.com
2junglehouse1@yahoo.com
23nycdeepms23@me.com
68nycdeepms23@me.com
10azn34girl@gmail.com
5azn34girl@gmail.com
123syeedygonzalez@gmail.com
4syeedygonzalez@gmail.com
129fight-me@hotmail.com
126azulescielos@gmail.com
34bakahbkah@gmail.com
68finale341040@gmail.com
4finale341040@gmail.com

Steps I am currently working on:

Step 1) I removed the brackets from the pizza_topping_id. I then split the account_id with the Data > Split Text to Columns in Google Sheets.

Now I'm stuck with a dataset with multiple columns for account_id. My question is: How can I add it back and also have the associated customer_email with this data?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>