skip to Main Content

How to export a weighted edge list to a JSON tree?

Given the following Pandas DataFrame (the original DataFrame has 200+ rows): import pandas as pd df = pd.DataFrame({ 'child': ['Europe', 'France', 'Paris','North America', 'US', 'Canada'], 'parent': ["", 'Europe', 'France',"", 'North America', 'North America'], 'value': [746.4, 67.75, 2.16, 579,331.9, 38.25] })…

VIEW QUESTION
Back To Top
Search