ValueError: Must pass 2-d input. shape=(15129, 10, 1)

I'm having a problem with reshaping a DataFrame, after doing this

train_dane_rnn = np.reshape(train_dane, (train_dane.shape[0], train_dane.shape[1], 1))
test_dane_rnn = np.reshape(test_dane, (test_dane.shape[0], test_dane.shape[1], 1))

I'm getting this error

ValueError: Must pass 2-d input. shape=(15129, 10, 1)

Topic reshape rnn neural-network python

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.