From 76c357737854fac8824fe798067fa8807d514ed9 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 27 Nov 2019 12:03:35 +0100 Subject: [PATCH] pandas.DataFrame needs to be a 2nd order array --- python/damask/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/damask/table.py b/python/damask/table.py index 2e426d6fb..3cd6ed330 100644 --- a/python/damask/table.py +++ b/python/damask/table.py @@ -90,7 +90,7 @@ class Table(): iloc = self.data.columns.get_loc(key).tolist().index(True) + int(idx) -1 self.data.iloc[:,iloc] = array else: - self.data[label] = array + self.data[label] = array.reshape(self.data[label].shape) def get_labels(self):