I have found the use of input_shape instead of input_dim in Keras, especially in LSTM problems? My concern is that input_shape limits the number of rows in the input. It doesn't leave the scope to give complete Dataframe as input. When should we use input_shape instead of input_dim?
Here are the examples https://machinelearningmastery.com/timedistributed-layer-for-long-short-term-memory-networks-in-python/