Entering edit mode
9 months ago
Hey guys, i have this code
srn.scatterplot(base.conc, base.uptake, hue = base.Type)
to plot a dispersion graph, but whe i try, appear this error:
TypeError Traceback (most recent call last) Cell In[13], line 2 1 # Gráfico de dispersão utilizando os atributos conc e uptake, agrupamento pelo type ----> 2 srn.scatterplot(base.conc, base.uptake, hue = base.Type)
TypeError: scatterplot() takes from 0 to 1 positional arguments but 2 positional arguments (and 1 keyword-only argument) were given
i want to fix that
You need to pass
srn.scatterplot(data=base, x=base.conc, y=base.uptake, hue=base.Type)