Adjust output to pandas Series