read all fields of a csv file in python
read all fields of a csv file in python Question: I have a problem reading a csv file. Each line of the csv file is separated by , My edge.csv file looks like this: source,target,genre apple,banana,28 strawberry,mango,30 so on….. So this is my code for read edge.csv file: def read_net(filename): g = nx.Graph() with open(filename,encoding="ISO-8859-1",newline="") …