Two minor fixes:
Use x-axis for min/max values
Make a copy of the DataFrame that is being modified