Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The error message "float() argument must be a string or a number, not cftime.cftime.DatetimeGregorian" means that the code is trying to convert a value of type cftime.cftime.DatetimeGregorian into a float, which is not possible. The float() function can only convert values that are strings or numbers.