This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
linkmapy/lib/linkmap2pandasdf.py

22 lines
406 B
Python
Raw Normal View History

2021-12-09 10:55:29 +01:00
from pandas import DataFrame
from .linkmap import LinkMap
def linkmap2pandasDF(linkmap:LinkMap) -> DataFrame:
data_connections = {
"link1": [],
"link2": []
}
for c in linkmap.link_connections:
link1, link2 = c
data_connections["link1"].append(link1)
data_connections["link2"].append(link2)
df = DataFrame(data=data_connections)
return df