python - Round numpy array and range it -


i have 1 array :

[1236,1363,1788,...] 

i should divide 100 , make integer, range number till number + 99 obtaining 2d array of

[[12, 13, ..., 111], [13, 14, ...,112], ...] 

the task not use loop.

i have idea 2 arrays first :

b = a//100  

and second :

c = a//100+99 

am right, or how task better, code should work fast?


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -