Great work sharing your process! How do you decide when to stick with a simple for loop versus optimizing with Pandas or other libraries?
When a For Loop Powers Your Stock Backtester - Devlog
Suleyman Sade
posted
Originally published at python.plainenglish.io
3 min read
0 Comments
Suleyman Sade
•
I would normally rather using the optimized Pandas approach almost always, but as I mentioned in the post I stick with a for loop partially because it is easier to read. But the other underlying reason is because I couldn't exactly figure out how I would record day to day price changes with the pre-recording approach. I didn't spend too much time into this since the regular for loop approach worked fast enough.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
chevron_left
More From Suleyman Sade
Related Jobs
- Full Stack Java/Go Developer (Bilingual English/Spanish)Dev Technology · Full time · Arlington, VA
- Remote Payroll Associate — Stock Grants & GrowthDeel · Full time · Turkey, NC
- Urologist -- 4.5 Day Schedule | Shared Call | Build Your PracticeSampson Regional Medical - Provider Services · Full time · Clinton, NC
Commenters (This Week)
Urooj Fatima | EE Student
10 comments
BashSnippets
7 comments
buildbasekit
4 comments
Contribute meaningful comments to climb the leaderboard and earn badges!