Re: [Tutor] Using numpy stack functions

2017-02-18 Thread Peter Otten
Bruhnke, Angelica wrote: > I'm new to python programming so this question will probably be a no > brainer for the experienced programmer. I'm trying to create a 10x10 array > of zeros and then framing it with a border of ones. So the final array is 12x12. > > Output should look like this: > >

[Tutor] Using numpy stack functions

2017-02-18 Thread Bruhnke, Angelica
Hi, I'm new to python programming so this question will probably be a no brainer for the experienced programmer. I'm trying to create a 10x10 array of zeros and then framing it with a border of ones. Output should look like this: [[ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 0. 0. 0. 0. 0. 0