Python Forum
cannot replace with np.nan
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot replace with np.nan
#1
a=np.random.randint(15,size=[2,5])
b=np.random.random([2,5])
b[0,2]=np.nan
a[0,2]=np.nan
I can easily replace any indices of b with nan. But if the same command I am trying to repeat for a, it's showing error. Why? How do I resolve that? Why is this happen?
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