Ask Your Question
0

A loop with Pandas in Sage

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

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 12:51:58 +0100

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 23:06:13 +0100 )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 12:28:35 +0100

Seen: 154 times

Last updated: Jun 30 '20