Im working to create a python network graph utilizing the 3 pandas dataframe string columns - unweighted (python networks and pyviz)
I would like to link (nodes) the projects to country, and projects to company.
my table/dataframe is as follow;
| Company | Project | Country |
|---|---|---|
| T-mobile | 5G upgrade | Germany |
| T-mobile | Network upgrade | Kuwait |
Let's say the DataFrame containing your data is
df(and it has three columns, i.e. "Company", "Project" and "Country". This would be a possible solution:Here are the nodes and edges of
G: