Networkx Read Edgelist From Pandas, Instead you can use from_pandas_edgelist.