Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to set up dataframe from csv

import pandas as pd

column_names = ['sepel lengh', 'sepel width', 'petal lengh', 'petal width', 'class']
iris = pd.read_csv('iris.csv', names=column_names)

print(iris)
 
PREVIOUS NEXT
Tagged: #set #dataframe #csv
ADD COMMENT
Topic
Name
7+5 =