Joel
Joel

Reputation: 3

insert names on a dataframe read on a URL

i want insert this names list ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class'] on my data frame export from this URL https://raw.githubusercontent.com/jbrownlee/Datasets/master/pima-indians-diabetes.data.csv

I want creat a dataframe or list with names

Thks

Upvotes: 0

Views: 52

Answers (1)

It_is_Chris
It_is_Chris

Reputation: 14113

df = pd.read_csv('https://raw.githubusercontent.com/jbrownlee/Datasets/master/pima-indians-diabetes.data.csv',
            names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class'])

Upvotes: 2

Related Questions