4 ms·
Here's another example: https://stackoverflow.com/questions/49936557/pandas-dataframe-loc-vs-query-performance https://stackoverflow.com/questions/49936557/pand
by leto_ii 7y ago
Here's another example:
https://stackoverflow.com/questions/49936557/pandas-dataframe-loc-vs-query-performance https://stackoverflow.com/questions/49936557/pandas-datafram...
What's the difference between query() and loc()? Do they evaluate to the same thing under the hood? Is one better than the other? In what cases?
These are questions that don't have obvious answers at first sight.