CSV to adjacency matrix
问题 I am trying to visualize some data I got using python and bokeh, but it is not working out. It is a .csv file and it looks like this, only then with much more rows and values: ;A;B;C;DA;0;0;1;2;B;0;3;0;0;C;0;0;0;1;D;1;0;2;0 I have tried some stuff, but it did not get me far and now I am kind of stuck. I tried to make the list with this: import csv with open('coauth.csv', 'r') as f: reader = csv.reader(f) your_list = list(reader) print(your_list) But then it outputs a nested list like this: [[