G = nx.from_pandas_dataframe(df, 'A', 'B', ['Count', 'some_attribute'])
print(G.edge[0][1])
print(G.edge[2][3])
{'Count': 1, 'some_attribute': 'red'}
{'Count': 5, 'some_attribute': 'red'}
Add attributes in Networkx write_graphml before opening in Gephi