How would you optimize a Python script that is running slowly when processing a multi-gigabyte pandas dataframe?