generated from microsoft/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
It would be great to have a more streamlined and user-friendly method for loading networks directly from an SQL database. Currently, the process works using the following code:
conn = sqlite3.connect("networks.db")
df_lotr = pd.read_sql_query('SELECT DISTINCT source, target from lotr', conn).rename(columns={"source": "v", "target": "w"})
conn.close()
n_lotr = pp.io.pandas.df_to_graph(df_lotr).to_undirected()Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request