<jupyter_start><jupyter_text>test the version without pandas<jupyter_code>import sys
dossier = '/home/benjamin/Documents/eviacybernetics/Projets/Grevia'
sys.path.append(dossier)
import grevia
import importlib
importlib.reload(grevia.graph_structure)
importlib.reload(grevia)
import networkx as nx
G = nx.read_gpickle('/media/benjamin/Largo/testspdfs/pickle/graph.pkl')
G.size()
edge_info = G.edges(data=True)
edge_sorted = sorted(edge_info, key=lambda edge: edge[2]['weight'], reverse=True)
edge_sorted[:None]
CSV_FILE = '/media/benjamin/Largo/testspdfs/csv/table_classif.csv'
import csv
cluster_dic ={}
print('Loading: ',CSV_FILE)
with open(CSV_FILE, 'r') as csvfile:
	clusters_table = csv.DictReader(csvfile, delimiter=',')
	for row in clusters_table:
		for key in row.keys():
			if key in cluster_dic.keys():
				cluster_dic[key].append(row[key])
			else:
				cluster_dic[key]=[row[key]]

del cluster_dic['']
cluster_dic<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup