OOPS! I knew I shouldn't have tried to squeeze in doing that before going
to class.
But yes, it now works! Thanks!!!
On Mon, Dec 5, 2011 at 11:25 AM, Nathann Cohen wrote:
> > Thanks for the suggestions. I'm on a Mac using OS 10.6.8. I created the
> csv file using Excel and saving as a csv file.
> Thanks for the suggestions. I'm on a Mac using OS 10.6.8. I created the csv
> file using Excel and saving as a csv file. Here's what happened when I tried
> rU in place of r:
You forgot the line that casts the values to integers
Nathann
--
You received this message because you are subsc
Thanks for the suggestions. I'm on a Mac using OS 10.6.8. I created the csv
file using Excel and saving as a csv file. Here's what happened when I
tried rU in place of r:
sage: cat "medalcomparison4.csv"
1,0,0,1,0sage: f = open("medalcomparison4.csv",'rU')
sage: entries = map(lambda x:x.strip('\n')
Hi, this is obviously a problem with the system-specific line-ending
characters. What happens if you try to replace
open("medalcomparison4.csv",'r') with open("medalcomparison4.csv","rU") ?
Have a nice day.
Lukáš Lánský.
Dne 5.12.2011 16:19, Raymond N. Greenwell napsal(a):
This is getting war
On Mon, Dec 05, 2011 at 10:19:53AM -0500, Raymond N. Greenwell wrote:
>This is getting warmer, but something must be different about my csv file.
>It appears to me to contain the following:
>
> 0 0 0 0 0
> 1 0 0
This is getting warmer, but something must be different about my csv file.
It appears to me to contain the following:
0 0 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 0 0 1 0 0 1 0 Here's what Sage
does:
sage: cat "medalcomparison4.csv"
1,0,0,1,0sage: f = open("medalcomparison4.csv",'r')
sage: entries = m
> I'm still stuck at creating my digraph from my csv file. My csv file is
essentially an adjacency matrix of 0's and 1's. I can import it, but I
can't convert it into an adjacency matrix that can then be created into a
digraph. Any more ideas? Thanks in advance for any help.
What about this ?
sag
I'm still stuck at creating my digraph from my csv file. My csv file is
essentially an adjacency matrix of 0's and 1's. I can import it, but I
can't convert it into an adjacency matrix that can then be created into a
digraph. Any more ideas? Thanks in advance for any help.
On Tue, Nov 22, 2011 at
On Mon, Nov 21, 2011 at 2:54 PM, Raymond N. Greenwell
wrote:
> When I try to import a csv file into Sage, Sage can't locate the file,
> indicating that it's
> not looking in the folder where I put the file. How do I find where Sage is
> looking, so
> I can put the file there? Note that this is
Hmmm I would be glad to write this method but I would like to
avoid the creation of the comparability digraph.
Could that be a problem for people working on Posets ? Can that be
really big on the instances you work on ?
If it's not, it would be nice to see how the stupid LP (10 lines)
would c
On Wed, Nov 09, 2011 at 05:52:15PM -0800, Raymond N. Greenwell wrote:
> I've been having some problems with Combinatorica, and someone
> suggested I try Sage. Can Sage import a csv file and then turn it into
> a graph, such as with the Combinatorica commands:
> m = Import["medalcomparison3.csv"]
>
On Wed, Nov 9, 2011 at 5:52 PM, Raymond N. Greenwell wrote:
> I've been having some problems with Combinatorica, and someone
> suggested I try Sage. Can Sage import a csv file and then turn it into
> a graph, such as with the Combinatorica commands:
> m = Import["medalcomparison3.csv"]
> g = FromA
I've been having some problems with Combinatorica, and someone
suggested I try Sage. Can Sage import a csv file and then turn it into
a graph, such as with the Combinatorica commands:
m = Import["medalcomparison3.csv"]
g = FromAdjacencyMatrix[m, Type -> Directed]
Also, can it give a minimum chain
13 matches
Mail list logo