TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How NOT to write pandas code

14 pointsby HIP_HOPover 5 years ago

2 comments

s_r_nover 5 years ago
I've never seen a Pandas tutorial advocating the for-loops the author describes and I have rarely come across for-loops in other people's Pandas code. I think the article could remove the for-loop "how not to" examples and it would be a typical "getting started with Pandas" article.
评论 #21746503 未加载
applecrazyover 5 years ago
The title is a bit clickbaity, so here’s a TL;DR:<p>Try to use the built-in vectorized Pandas functions instead of writing explicit loops.
评论 #21743638 未加载