Answers for "split the dataset into x (inputs) and y (outputs) (suggestion: use .iloc)"

1

return df.iloc[1:]

>>> df.iloc[1:3, 0:3]
      a     b     c
1   100   200   300
2  1000  2000  3000
Posted by: Guest on October-20-2020

Code answers related to "split the dataset into x (inputs) and y (outputs) (suggestion: use .iloc)"

Python Answers by Framework

Browse Popular Code Answers by Language