One can drop the first n elements of an array by using Array#drop
.
a = [1,2,3]
a.drop(2) # => [3]
I want to drop the first n rows from a Daru::DataFrame
object. It seems this class does not implement such drop
method.
How can I delete the first n rows from a Daru::DataFrame
object?
You can use row_at to retrieve all the rows without the first 4.
Example:
Retrieve rows: