Feb-02-2020, 05:29 PM
(This post was last modified: Feb-02-2020, 05:30 PM by SchroedingersLion.)
I found the solution: One has to specify axis=0 in order to get what I want, otherwise the arrays are flattened before appending is performed.
X_y_disch = np.append(X_y_disch, [[k for k in B1_B2[keys]["Discharge-Model"].values()] + [B1_B2[keys]["Cycle Life"][0,0]]], axis=0)