Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to prepare independent and dependent variables from dataframe

# Independent variables
X = df.iloc[:, :-1].values
print(X)

# dependent variable y
y = df.iloc[:,-1].values
y
 
PREVIOUS NEXT
Tagged: #prepare #independent #dependent #variables #dataframe
ADD COMMENT
Topic
Name
8+2 =