Python performance lessons¶
I ran across this article on profiling python, etc. I took away three things from it:
-
Numpy's take method could speed up 'fancy' indexing.
-
Pandas has very fast/efficient join and group by by functionality.
-
Use named tuples more often when needing 'simple' objects that are not going to change. They are essentially c-structs and thus are contiguous in memory.