Added concurrency for requests to speed things up
This commit is contained in:
parent
11a86cead2
commit
67e7bcc6fb
4 changed files with 132 additions and 109 deletions
|
@ -6,7 +6,7 @@ from pyvis.network import Network
|
|||
def pyvis_graph_from_pandas_DF(pandas_df:DataFrame, source_column:str="link1", target_column:str="link2", heading:str=None) -> Network:
|
||||
|
||||
nx = from_pandas_edgelist(pandas_df, source=source_column, target=target_column)
|
||||
pyvis_net = Network(bgcolor="#222222", font_color="#fafafa", width="100%", height="95%")
|
||||
pyvis_net = Network(bgcolor="#222222", font_color="#fafafa", width="100%", height="95%", directed=True)
|
||||
pyvis_net.from_nx(nx, default_node_size=8)
|
||||
|
||||
if heading != None:
|
||||
|
|
Reference in a new issue