I have an array like - 

```
x =  array([0, 1, 2, 3,4,5])

```

And I want the output like this - 

```
[]
[1]
[1 2]
[1 2 3]
[1 2 3 4]
[1 2 3 4 5]

```

I tried this code- 

```
y = np.array([np.arange(1,i) for i in x+1])

```

But it makes a list with dtype object which I dont want. I want it ot be integer so that I can indexed it later.