How would I deal with this? The variable "residual sugar" has a space, other than don't use variables with spaces (not my data).
plt.plot(trimmedWine.density, trimmedWine.residual sugar, 'bo', alpha=.25)
I suppose you are referring to pandas data frame column, if so, then trimmedWine['residual sugar'] is what you probably need.