0

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)
Jeff
  • 175
  • 1
  • 8

1 Answers1

5

I suppose you are referring to pandas data frame column, if so, then trimmedWine['residual sugar'] is what you probably need.

reicja
  • 88
  • 5