Last active
October 31, 2021 19:04
-
-
Save khuyentran1401/f8e9ab18877da54af61195034e42cb27 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
network = [ | |
("Ben", "Khuyen"), | |
("Ben", "Thinh"), | |
("Ben", "Michael"), | |
("Ben", "Lauren"), | |
("Ben", "Josh"), | |
("Lauren", "Khuyen"), | |
("Thinh", "Michael"), | |
("Khuyen", "Josh"), | |
] | |
friends = pd.DataFrame(network, columns=["person1", "person2"]) | |
friends |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment