Method: Polars::DataFrame#slice
- Defined in:
- lib/polars/data_frame.rb
#slice(offset, length = nil) ⇒ DataFrame
Get a slice of this DataFrame.
2191 2192 2193 2194 2195 2196 |
# File 'lib/polars/data_frame.rb', line 2191 def slice(offset, length = nil) if !length.nil? && length < 0 length = height - offset + length end _from_rbdf(_df.slice(offset, length)) end |