Importing & matching attributes from a .csv

Get help with your data
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
abjonas
Posts:4
Joined:19 Sep 2014 17:25
Location:Lexington, KY
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Importing & matching attributes from a .csv

Post by abjonas » 22 Dec 2014 22:07

Please pardon if this is reminiscent of previous posts, but I am seeking help adding a .csv file of node attributes to an network previously imported into Gephi. My data are 220,000+ rows of data as below:

Code: Select all

"prescriber_id","psychiatrist","general","nurseprac"
1,0,1,0
5,0,1,0
16,0,0,0
The prescriber_id corresponds to ids created in the previously imported edgelist.

What is the simplest way to import these attributes into Gephi in a way in which the prescriber_id will accurately match the existing node ids? If all data must be reimported via a .gdf does any software exist that will convert a .csv to .gdf without manually writing the .gdf?

Thanks for any help you can provide!

abjonas
Posts:4
Joined:19 Sep 2014 17:25
Location:Lexington, KY
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Importing & matching attributes from a .csv

Post by abjonas » 22 Dec 2014 22:29

The import seems to have worked after changing the "prescriber_id" column to "ID" and then importing.

Apologies for the self-answer!

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable