unable to load a simple csv in networkx in Python

前端 未结 2 913
栀梦
栀梦 2021-01-05 18:58

I am a complete noobie in Python, and I would like to study a dataset using the networkx package. I do not understand what is wrong here:

I have a csv which looks li

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 19:29

    file is a python keyword. Try naming the variable something else like csvfile.

提交回复
热议问题