python - find max value of a list with numpy nan - Stack Overflow

PHOTO EMBED

Wed Dec 22 2021 04:35:59 GMT+0000 (Coordinated Universal Time)

Saved by [deleted user] #python

In [57]: np.nanmax([np.nan, 1, 2, 3, 4])
Out[57]: 4.0
content_copyCOPY

https://stackoverflow.com/questions/43042424/find-max-value-of-a-list-with-numpy-nan