I am trying to combine a series with a dataframe (column-wise):
xray_XY_ok = pd.concat([xray[xray.columns[0]], xray_X_ok], axis=1, ignore_index = True)
but I got the following error:
ValueError: Shape of passed values is (7808, 51), indices imply (6496, 51)
but the two datas' shapes are of the following:
xray_X_ok.shape
(5856, 50)
xray[xray.columns[0]].shape
(5856,)