February 2016
Beginner to intermediate
354 pages
7h 30m
English
After reading in the data, there are certain tasks that need to be performed to get the touch and feel of the data:
Let us go back to the example of the Titanic dataset and import it again. The head() method is used to look at the first first few rows of the data, as shown:
import pandas as pd
data=pd.read_csv('E:/Personal/Learning/Datasets/Book/titanic3.csv')
data.head()The result will look similar to the following screenshot:
Fig. 2.6: Thumbnail view of the Titanic dataset obtained using the head() ...
Read now
Unlock full access