## Access element by indexing | |
new_column1 = [i[0] for i in df.Nums] | |
new_column2 = [i[1] for i in df.Nums] | |
Out[36]: | |
['976', '984', '246', '252', '1419', '103', '85', '85', | |
'244', '540', '252', '250', '248', '248', '188', '190', '120'] | |
Out[38]: | |
['660', '360', '127', '345', '1373', '515', '290', '290', | |
'165', '690', '235', '128', '275', '285', '300', '275', '170'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment