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
#4
The problem is exactly described in error message: you can't broadcast shape 2,1 into shape 2.

array([0, 0], dtype=object)   # a
array([[11],                  # b
       [13]])
Before any advice it would be good to know what is the objective i.e. what do you want to accomplish.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: Inserting slice of array objects into different slice - by perfringo - Apr-01-2020, 04:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  slice per group Progressive 3 5,406 Jul-20-2019, 06:52 AM
Last Post: scidam
  TypeError: '(slice(None, None, None), 0)' is an invalid key zaki424160 1 15,274 Jul-17-2019, 11:53 PM
Last Post: scidam
  Melt or Slice Grin 0 2,211 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