Before starting with data prediction using the Monte Carlo 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(dataset.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-06-05 to 2018-06-05Data columns (total 1 columns):Close 4529 non-null float64dtypes: float64(1)memory usage: 70.8 KB
From the analysis of the results obtained, we can see that the dataset contains ...