Python Forum
cannot replace with np.nan
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot replace with np.nan
#2
Numpy treat NaN as a float. You cannot use it in an integer array.
Instead, you can use an invalid value:

a[0, 2] = -99999
Reply


Messages In This Thread
cannot replace with np.nan - by ankurk017 - Jul-02-2018, 06:01 AM
RE: cannot replace with np.nan - by gontajones - Jul-02-2018, 11:32 AM
RE: cannot replace with np.nan - by volcano63 - Jul-02-2018, 11:40 AM
RE: cannot replace with np.nan - by carlhyde - Apr-19-2021, 06:37 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020