Re: [sage-support] Re: Route inspection problem

2018-04-02 Thread slelievre
Or you can turn off the Sage preparser. preparser(False) edgelist.head(10) Le mardi 3 avril 2018 08:44:29 UTC+2, slelievre a écrit : > > Or you can do edgelist.head(int(10)) > > 2018-04-03 8:00 GMT+02:00 Henri Girard: > >> Thanks, i must write it to each command but it works well >> >

Re: [sage-support] Re: Route inspection problem

2018-04-02 Thread Samuel Lelièvre
Or you can do edgelist.head(int(10)) 2018-04-03 8:00 GMT+02:00 Henri Girard : > Thanks, i must write it to each command but it works well > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving email

Re: [sage-support] Re: Route inspection problem

2018-04-02 Thread Henri Girard
Thanks, i must write it to each command but it works well Le 03/04/2018 à 00:58, slelievre a écrit : Le lundi 2 avril 2018 16:57:27 UTC+2, HG a écrit : > I tried networkx, it works fine with python2 but I have > a problem with edges in sagemath ? > > edgelist.head(10) > TypeError: cannot do s

[sage-support] Re: Route inspection problem

2018-04-02 Thread slelievre
Le lundi 2 avril 2018 16:57:27 UTC+2, HG a écrit : > I tried networkx, it works fine with python2 but I have > a problem with edges in sagemath ? > > edgelist.head(10) > TypeError: cannot do slice indexing on 'pandas.core.indexes.range.RangeIndex'> with these indexers > [10] of > Is there a wa

[sage-support] Re: Route inspection problem

2018-04-02 Thread Dima Pasechnik
an obvious way would be to modify the example so that it does not use pandas (which seems to be only used to read data from csv files, something that's totally orthogonal to the task at hand) On Monday, April 2, 2018 at 4:57:27 PM UTC+2, HG wrote: > > I tried networkx, it works fine with python2

[sage-support] Re: Route inspection problem

2018-04-02 Thread HG
I tried networkx, it works fine with python2 but I have a problem with edges in sagemath ? edgelist.head(10) TypeError: cannot do slice indexing on with these indexers [10] of Is there a way getting it working ? Le dimanche 1 avril 2018 08:19:11 UTC+2, jori.ma...@uta.fi a écrit : > > I was