Python Forum
Adding a row to a character array
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a row to a character array
#2
I thought this might work:
>>> np.concatenate([[b'*', b'*', b'*', b'*', b'O', b'*', b'O', b'*', b'*', b'*'], m, [b'*', b'*', b'*', b'*', b'O', b'*', b'O', b'*', b'*', b'*']])
but it raises the error
Error:
Traceback (most recent call last):   File "<stdin>", line 1, in <module> ValueError: all the input arrays must have same number of dimensions
It probably is something very similar
Reply


Messages In This Thread
Adding a row to a character array - by JoeB - Nov-23-2017, 12:06 PM
RE: Adding a row to a character array - by Larz60+ - Nov-23-2017, 12:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [solved] unexpected character after line continuation character paul18fr 4 3,440 Jun-22-2021, 03:22 PM
Last Post: deanhystad
  SyntaxError: unexpected character after line continuation character siteshkumar 2 3,203 Jul-13-2020, 07:05 PM
Last Post: snippsat
  how can i handle "expected a character " type error , when I input no character vivekagrey 2 2,769 Jan-05-2020, 11:50 AM
Last Post: vivekagrey
  Adding markers to Folium map only adding last element. tantony 0 2,136 Oct-16-2019, 03:28 PM
Last Post: tantony
  Replace changing string including uppercase character with lowercase character silfer 11 6,240 Mar-25-2019, 12:54 PM
Last Post: silfer
  Trouble adding LONG strings to an array or CSV output hariskr 1 2,217 Aug-02-2018, 11:29 PM
Last Post: woooee
  SyntaxError: unexpected character after line continuation character Saka 2 18,589 Sep-26-2017, 09:34 AM
Last Post: Saka

Forum Jump:

User Panel Messages

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