I'm currently trying to generate a Network-Graph with NetworkX on Python. The Dataset has the following format (it's a CSV):
Id, Tag
0, 'science'
0, 'history'
1, 'sports'
3, 'sci-fi'
3, 'history'
3, 'music'
The Goal is to show the relation between the tags. F.e. Science is really closely related to History because they share the same Id. Now here's where I'm stuck: How can I create a Table/Matrix that has 2 columns for NetworkX to use as Source(-Tag) and Target(-Tag) with Python?
I tried creating a Dataframe with Pandas and then using the same column twice, but that didn't work for me.

