I'm running into the error Shape of passed values is (2549950, 1), indices imply (2549950, 13)
when trying to create pandas dataframe out of a One Hot encoded column.
Here's my code snippet.
ohe_df = pd.DataFrame(transformed, columns=enc.get_feature_names())
The shape of transformed is (2549950, 13) and shape of enc.get_feature_names() is (13,)
Thanks