Question: I have an element which should be animated all the time.
The animated element has such CSS properties:

```
#world {
    height: 100%;
    max-height: 100%;
    position: relative;
    display: flex;
    background :red;
}

```

I can only move the element to a particular way, like this:

```
$('#world').animate({right: "2000px", easing: "linear"}, 2000);

```

But this will just animated for 2000px my element has an endless width.

**UPDATE:**

ALL 7.5 Sec. `#world` become bigger.

**[FIDDLE](http://jsfiddle.net/csxLeeak/)**

Answer: 
```
mask = np.ones(len(data), np.bool)
mask[sample_indexes] = 0
other_data = data[mask]

```

not the most elegant for what perhaps should be a single-line statement, but its fairly efficient, and the memory overhead is minimal too.

If memory is your prime concern, np.delete would avoid the creation of the mask, and fancy-indexing creates a copy anyway.

On second thought; np.delete does not modify the existing array, so its pretty much exactly the single line statement you are looking for.
You may want to try `in1d`

```
In [5]:

select = np.in1d(range(data.shape[0]), sample_indexes)
In [6]:

print data[select]
[[ 0.99121108  0.35582816]
 [ 0.90154837  0.86254049]
 [ 0.83149103  0.42222948]]
In [7]:

print data[~select]
[[ 0.93825827  0.26701143]
 [ 0.27309625  0.38925281]
 [ 0.06510739  0.58445673]
 [ 0.61469637  0.05420098]
 [ 0.92685408  0.62715114]
 [ 0.22587817  0.56819403]
 [ 0.28400409  0.21112043]]

```