Update one entry in specific record in datastore

def update1(self, key: str, data: np.ndarray, size: int) -> None:
        """ Update one entry in specific record in datastore """
        print(data)
        if key in self.get_keys():
            self.data[key][data[0]] = data
        else:
            newdata = np.zeros((size, 6))
            newdata[data[0]] = data
            self.data[key] = newdata