we can print the names of the headers with the following line of scriptprint(headersthe following line of script will print the shape of the data number of rows columns in the fileprint(data shapenext script line will give the first three line of data fileprint(data[: ]output ['sepal_length''sepal_width''petal_length''petal_width'( [[ [ [ ]load csv with numpy another approach to load csv data file is numpy and numpy loadtxt(function the following is an example of loading csv data file with the help of itexample in this examplewe are using the pima indians dataset having the data of diabetic patients this dataset is numeric dataset with no header it can also be downloaded into our local directory after loading the data filewe can convert it into numpy array and use it for ml projects the following is the python script for loading csv data filefrom numpy import loadtxt path " :\pima-indians-diabetes csvdatapathopen(path' 'data loadtxt(datapathdelimiter=","print(data shapeprint(data[: ]