如何从以下 csv 制作图形网络

How to make a graph network from the following csv

我通过抓取 scopus 获得了以下 csv。我想建立一个来自同一国家/地区的作者网络 - 就像每次两位来自同一国家/地区的作者一样,我们在他们之间添加一条边。

This image has the csv file screenshot

这是我正在使用的完整 csv 的链接。

https://drive.google.com/file/d/1B8yaMqFu9yHQudrWI-8-mCpo6pt1T2oW/view?usp=sharing

此外,有谁知道如何查找文章['eid] 的引用数据并解析如下数据:

以下table:

author   cited-by author   paper    auth-university     auth-country

我们的想法是建立一个作者和合著者网络,如果每个作者在作者被引用列中都有相应的值,则添加一条边。

您可以对国家/地区使用内部联接来获取边缘:

import pandas as pd
data = pd.read('/path/to/file.csv')
combinations = pd.merge(data, data, how='inner', on='country')
edges = combinations['author_x', 'author_y']