Last active
September 12, 2020 19:33
-
-
Save YiLi225/293500935315bf6873d46b4cc718055b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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