output ( [ ]load csv with pandas another approach to load csv data file is by pandas and pandas read_csv()function this is the very flexible function that returns pandas dataframe which can be used immediately for plotting the following is an example of loading csv data file with the help of itexample herewe will be implementing two python scriptsfirst is with iris data set having headers and another is by using the pima indians dataset which is numeric dataset with no header both the datasets can be downloaded into local directory script- the following is the python script for loading csv data file using pandas on iris data setfrom pandas import read_csv path " :\iris csvdata read_csv(pathprint(data shapeprint(data[: ]output( sepal_length sepal_width petal_length petal_width