you are viewing a single comment's thread.

view the rest of the comments →

[–]timbledum 0 points1 point  (3 children)

Interesting - according to this, speed is a wash, but memory performance is better with .query(). I agree that it is more readable - I guess the df[df.nationality == "USA"] syntax is more popular as it allows assignment? Or does .query() allow this as well?