Ask Your Question
3

What does the error message "float() argument must be a string or a number, not cftime._cftime.DatetimeGregorian" mean?

asked 2021-05-02 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-01-19 10:00:00 +0000

pufferfish gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-02 11:00:00 +0000

Seen: 9 times

Last updated: Jan 19 '23