Open raoulcollenteur opened 2 years ago
At this point, PyEt is working only with Pandas.Series and xarray.DataArray. We do not state anywhere that you can also use pandas.DataFrame. We can think about extending PyEt to DataFrames, however, there are some challenges in doing so:
In short, I can not think of a simple and fast solution so that PyEt also works with pandas.DataFrames.
Note to self, document use of Pandas Apply function in the examples to do this.
I think the methods are not tested for pandas.DataFrame, and actually don't work for this data yet. Running the following code with dataframes gives an error:
et = pyet.hargreaves(tmean, tmax, tmin, lat=lat)
TypeError: 'str' object is not callable
I think caused by this line:
--> 192 return pe.rename("Hargreaves")