how to set up dataframe from csv

Solutions on MaxInterview for how to set up dataframe from csv by the best coders in the world

showing results for - "how to set up dataframe from csv"
Charissa
17 Jul 2018
1import pandas as pd
2
3column_names = ['sepel lengh', 'sepel width', 'petal lengh', 'petal width', 'class']
4iris = pd.read_csv('iris.csv', names=column_names)
5
6print(iris)