Before starting with data analysis through the classification algorithm, we will conduct an exploratory analysis to understand how the data is distributed and extract preliminary knowledge. To display the first twenty rows of the DataFrame that's been imported, we can use the head() function, as follows:
The following results are returned:
The first 20 rows are displayed. This function returns the first n rows for the object, based on position. This is useful for quickly testing whether your object has the right type of data in it. Now the dataset is available in our Python environment. To extract ...