Importing

Once it's running
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
cmcilwain1
Posts:1
Joined:30 Aug 2011 18:26
[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

Post by cmcilwain1 » 30 Aug 2011 18:31

I'm importing a .CSV file with both Node and Edge data into a new project. However (I haven't had this problem in the past) I'm getting an error when I try to upload the file that says "The file can't have repeated column names." What does this mean and what do I need to alter in my file to fix this problem?

User avatar
eduramiba
Gephi Code Manager
Posts:1064
Joined:22 Mar 2010 15:30
Location:Madrid, Spain
[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

Post by eduramiba » 30 Aug 2011 22:38

Hi,
Are you using import spreadsheet from data laboratory?
If you are, note that you will have to use a file for nodes and another file for edges.
Once imported you can save your graph to a gephi project or export any kind of graph file.

This error basically means that your file has 2 or more columns with the same name.
These names are always in the first line of the file as a header.

Eduardo

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