First time here? Check out the FAQ!

Ask Your Question
0

A loop with Pandas in Sage

asked 4 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

FrédéricC gravatar image

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

Preview: (hide)
link

Comments

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

Cyrille gravatar imageCyrille ( 4 years ago )

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: 4 years ago

Seen: 174 times

Last updated: Jun 30 '20