Method: Polars::DataFrame#hstack
- Defined in:
- lib/polars/data_frame.rb
#hstack(columns, in_place: false) ⇒ DataFrame
Return a new DataFrame grown horizontally by stacking multiple Series to it.
3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 |
# File 'lib/polars/data_frame.rb', line 3910 def hstack(columns, in_place: false) if !columns.is_a?(::Array) columns = columns.get_columns end if in_place _df.hstack_mut(columns.map(&:_s)) self else _from_rbdf(_df.hstack(columns.map(&:_s))) end end |