data_std = data-StandardScaler().fit_transform(data) seems to return values which are not bound within the [0,1] range. is this an error or am i getting something wrong?

i have written a function that seems to solve this:

```
def normalize_data(data):
_data=np.array(data)
n_data=np.zeros(np.shape(_data))
for i in range(0, np.amin(np.shape(_data))):
v=_data[:,i]
n_data[:,i]=(v-np.amin(v))/(np.amax(v)-np.amin(v))
return n_data
```

this function normalizes the data and sets x,y,z within [0,1] range.