url= "https://archive.ics.uci.edu/ml/machine-learning-databases/iris.data"
names = ['sepal-length','sepal-width','petal-length','petal-width','petal-width','class']
dataset = pandas.read_csv(url, names = names)
ValueError: Duplicate names are not allowed.
I was expecting this output but instead there was an error
New contributor
Varun Prakash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.