Topic

Performance

Collection size
3 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Nov 15, 2024 · Fundamentals

Understanding pandas loc/iloc vs at/iat: Performance Comparison and Best Practices

This article explains the differences between pandas loc/iloc and at/iat, demonstrates why using loc/iloc inside loops can be extremely slow, and shows how replacing them with at/iat can speed up DataFrame updates by up to 60 times.

DataFramesatloc
0 likes · 6 min read
Understanding pandas loc/iloc vs at/iat: Performance Comparison and Best Practices
Python Programming Learning Circle
Python Programming Learning Circle
Aug 27, 2024 · Fundamentals

Understanding pandas loc/iloc Performance and Faster Alternatives with at/iat

This article explains how pandas loc and iloc work, demonstrates their slow performance when used inside loops, and shows that using the at and iat accessors provides a dramatically faster alternative for scalar assignments in DataFrames.

atiatiloc
0 likes · 5 min read
Understanding pandas loc/iloc Performance and Faster Alternatives with at/iat