Cant seem to get pandas to do a scatterplot:
Trying to do a scatterplot, keep getting this error:
TypeError: only length-1 arrays can be converted to Python scalars
basic example:
x= self.df['he']
y= self.df['xy']
sct = plt.scatter(x,y)
I was trying to do a bubble plot (scatterplot with color and size), requires 4 additional args
bubble example:
color = self.df['clr'].values
size = self.df['sze'].values
sct = plt.scatter(x, y, c=clr, s=size, linewidths=2, edgecolor='w')
again, regardless of simple (scatter) or complex (bubble): cannot get this beyond this error
TypeError: only length-1 arrays can be converted to Python scalars
any help is appreciated: is this a bug in pandas? matplotlib throws error as well? -best
