ValueError: array length 2 does not match index length 0 python code example
Example: ValueError: array length 2 does not match index length 0 python
# You may be getting array mismatch error because of the index the series contains.
# So reset the index earlier or pass only the values i.e
result_frame = pd.DataFrame({'index': test_subdata['id'].values,
'match_1': m1, # indirectly related series
'pred1': predicciones['pred1'].values})