Ask Your Question

A loop with Pandas in Sage

asked 2020-06-30 12:28:35 +0200

Cyrille gravatar image

I am working with Pandas from inside Sage. As there is a problem with integers and to display the third element of a Pandas series S in Sage I am obliged to write S[3r]. I would like to know how I can make a for loop since S[jr] will obviously not work.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-06-30 12:51:58 +0200

FrédéricC gravatar image

range donne des int, donc ca devrait marcher avec range. Sinon utiliser int(j).

edit flag offensive delete link more


Frédéric, I try and I will tell you if I succeed. Thanks

Cyrille gravatar imageCyrille ( 2020-06-30 23:06:13 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-06-30 12:28:35 +0200

Seen: 133 times

Last updated: Jun 30 '20