Post

Log inSign up

Post

user avatar
pandas
@pandas_dev
Artificial intelligence may not be so intelligent if it uses pandas .apply() when not strictly necessary. Our operations are usually vectorized (very fast), .apply() is usually not, so it may be very slow. Avoid loops and apply if a pandas operation exists for what you need.
user avatar
Mark Tenenholtz
Perplexity
@marktenenholtz
Aug 25, 2023
I love GPT-4 code assistant but it uses .apply() for every bit of pandas code and I ain't about it
10:22 PM · Aug 25, 2023168.3KViews

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Relevant people

user avatar
pandas@pandas_devFollow

Trending now

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up