Ask Your Question
0

A loop with Pandas in Sage

asked 2020-06-30 05:28:35 -0500

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
1

answered 2020-06-30 05:51:58 -0500

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

Comments

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

Cyrille gravatar imageCyrille ( 2020-06-30 16:06:13 -0500 )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

Stats

Asked: 2020-06-30 05:28:35 -0500

Seen: 36 times

Last updated: Jun 30