title: How can I set sigma parameter in xarray curvefit?
body: <p>I want to fix the limits of my dataset fitting, using the <code>curvefit</code> function of Xarray. In the <a href="https://docs.xarray.dev/en/stable/generated/xarray.Dataset.curvefit.html" rel="nofollow noreferrer">documentation</a> it is said that the function accepts <code>**kwargs</code> to pass to <code>scipy curve_fit</code>, but passing a value for <code>sigma</code> I get this error.</p>
  <blockquote>
  <p>TypeError: curvefit() got an unexpected keyword argument 'sigma'</p>
  </blockquote>