Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
0
respuestas

Error sns.displot

ax = sns.displot(datos.Edad,
hist_kws = {'cumulative': True},
kde_kws = {'cumulative': True},
bins = 10)
ax.figure.set_size_inches(12,4)
ax.set_titles('Distribucion de frecuencia acumulada', fontsize= 18)
ax.set_xlabels('Acumulado', fontsize=14)
ax.set_ylabels('Años', fontsize=14)
ax

Me muestra el siguiente error:

AttributeError Traceback (most recent call last)
/tmp/ipython-input-58-1923482267.py in <cell line: 0>()
----> 1 ax = sns.displot(datos.Edad,
2 hist_kws = {'cumulative': True},
3 kde_kws = {'cumulative': True},
4 bins = 10)
5 ax.figure.set_size_inches(12,4)

5 frames
/usr/local/lib/python3.11/dist-packages/matplotlib/artist.py in update_props(self, props, errfmt)
1204 func = getattr(self, f"set
{k}", None)
1205 if not callable(func):
-> 1206 raise AttributeError(
1207 errfmt.format(cls=type(self), prop_name=k),
1208 name=k)

AttributeError: Rectangle.set() got an unexpected keyword argument 'hist_kws'