Last active
December 25, 2024 05:25
-
-
Save dsignr/c3f7a67fcfb1fb93698a507f4cce8eef to your computer and use it in GitHub Desktop.
A python script to extract data from CSV and convert it into Gephi compatible GML.
can i have the dataset of the csv file because i want to see the structure of the csv file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xml2csv
import sys, time
import pandas as pd
import datetime as dt
from IPython.display import display
import csv
import xml.etree.ElementTree as ET
def xml_to_csv(file_path,csv_name) -> None:
tree = ET.parse(file_path)
root = tree.getroot()
if name = 'main':