I downloaded a dataset of Blood Transfusion Service Center Data Set from UCI machine learning repository. The two files are 1- transfusion.data 2- transfusion.names
How can a beginner load both these files in python ?
I downloaded a dataset of Blood Transfusion Service Center Data Set from UCI machine learning repository. The two files are 1- transfusion.data 2- transfusion.names
How can a beginner load both these files in python ?
Instead of first downloading the file (which you could do), you could do this
import pandas as pd
data = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/blood-transfusion/transfusion.data')
and
data = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/blood-transfusion/transfusion.names')
(If you DO choose to download), use the same method but give the path to the file.)