I want to build a network diagram from a dataframe that I have, but I am having troubles.
This is what the dataframe looks like.
Shop | Manager |
---|---|
S1 | 34 |
S1 | 12 |
S2 | 11 |
S2 | 34 |
S3 | 34 |
S4 | 50 |
For example, S1 should be connected to S2 and S3 since they have the same manager and so on. Also, is it possible to set the size of the dot based on the number of managers a shop has?
I really appreciate the help. Thanks!