Answers for "X = df.iloc[:, 1:]"

9

iloc in dataframe

df=pd.read_csv('yourcsv.csv')
X=df.iloc[:,:-1].values
y=df.iloc[:,1].values
Posted by: Guest on June-15-2020
-2

X = df.iloc[:, 1:]

X = df.iloc[:, 1:]
Posted by: Guest on January-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language