Python Forum
Inserting slice of array objects into different slice
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting slice of array objects into different slice
#2
Shouldn't it be: a = np.zeros((2,), dtype=np.object)

(2) is an int, (2,) is s tuple
Reply


Messages In This Thread
RE: Inserting slice of array objects into different slice - by deanhystad - Mar-31-2020, 06:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  slice per group Progressive 3 6,686 Jul-20-2019, 06:52 AM
Last Post: scidam
  TypeError: '(slice(None, None, None), 0)' is an invalid key zaki424160 1 17,221 Jul-17-2019, 11:53 PM
Last Post: scidam
  Melt or Slice Grin 0 2,686 Jun-24-2018, 06:02 PM
Last Post: Grin

Forum Jump:

User Panel Messages

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