x y
[133,28,23] female
[157,22,87] male
[160,33,77] male
[122,87,20] female
[120,22,20] female
This is the data that i have in my book.csv file.
>>fd=pandas.read_csv("C://users/admin/Desktop/Book1.csv")
>>l1=[h for h in fd.x]
After following commands, l1
stores this value:
['[133,28,23]', '[157,22,87]', '[160,33,77]', '[122,87,20]', '[120,22,20]']
The following output is string in list format, but i want nested list like this:
[[133,28,23],[157,22,87],[160,33,77],[122,87,20],[120,22,20]]
What changes do I need to make?