Exploratory analysis

Before starting with data prediction using the LSTM method, we will conduct an exploratory analysis to understand how the data is distributed and extract preliminary knowledge. To extract preliminary information about the imported dataset, we can invoke the info() function:

print(Data.info())

This function prints information about a DataFrame, including the index and column dtypes, non-null values, and memory usage. The following results are returned:

<class 'pandas.core.frame.DataFrame'>DatetimeIndex: 4529 entries, 2000-11-21 to 2018-11-21Data columns (total 1 columns):Close    4529 non-null float64dtypes: float64(1)memory usage: 70.8 KBNone

From the analysis of the results that have been obtained, we can see that the ...

Get Keras 2.x Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.