processing-efficiency

How do I find out what parts of my code are inefficient in Python

How do I find out what parts of my code are inefficient in Python Question: On a previous question I was asking about multiprocessing, using multiple cores to make a program run faster, and someone told me this: More often than not, you can get a 100x+ optimization with better code compared to a 4x …

Total answers: 2

Why does concatenation of DataFrames get exponentially slower?

Why does concatenation of DataFrames get exponentially slower? Question: I have a function which processes a DataFrame, largely to process data into buckets create a binary matrix of features in a particular column using pd.get_dummies(df[col]). To avoid processing all of my data using this function at once (which goes out of memory and causes iPython …

Total answers: 2