Skip to content

Instantly share code, notes, and snippets.

View sohana08's full-sized avatar
🎯
Focusing

HaNa sohana08

🎯
Focusing
View GitHub Profile
In [99]: import pandas as pd
In [100]: data = pd.read_csv('/home/haridutt/Downloads/automobile.csv')
In [101]: X = data.loc[:, ['type', 'engine_s', 'horsepow', 'mpg']]
In [102]: y = data.iloc[:, 1 ]
In [103]: X_opt = X