You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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")
The text was updated successfully, but these errors were encountered:
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:
rename function works with pandas.Series and xarray.DataArray, but not with pandas.DataFrame.
NumPy functions (max, min, mean, ...) used on pandas.Series and xarray.DataArray return a Float/Int. With pandas.DataFrame, they return a pandas.Series.
In short, I can not think of a simple and fast solution so that PyEt also works with pandas.DataFrames.
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")
The text was updated successfully, but these errors were encountered: