pandas.DataFrame needs to be a 2nd order array

This commit is contained in:
Martin Diehl 2019-11-27 12:03:35 +01:00
parent 39734ef53c
commit 76c3577378
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Table():
iloc = self.data.columns.get_loc(key).tolist().index(True) + int(idx) -1 iloc = self.data.columns.get_loc(key).tolist().index(True) + int(idx) -1
self.data.iloc[:,iloc] = array self.data.iloc[:,iloc] = array
else: else:
self.data[label] = array self.data[label] = array.reshape(self.data[label].shape)
def get_labels(self): def get_labels(self):