Skip to content

Instantly share code, notes, and snippets.

@khuyentran1401
Last active October 31, 2021 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save khuyentran1401/f8e9ab18877da54af61195034e42cb27 to your computer and use it in GitHub Desktop.
Save khuyentran1401/f8e9ab18877da54af61195034e42cb27 to your computer and use it in GitHub Desktop.
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