Enlarging array and filling with value?

前端 未结 0 1275
终归单人心
终归单人心 2020-12-01 01:26

What is the best way to enlarge a numpy 1D array and fill the new space with the last value.

F.e.

 a = [1,2,3]
 ... enlarge ..to size 5 ...
 a = [1,2,3         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题