Skip to content

Commit

Permalink
fix concatenation of polars objects, use horizontal strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Jun 11, 2024
1 parent 36f639e commit 97dbf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iranges/IRanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ def to_polars(self) -> "polars.DataFrame":
output = pl.DataFrame({"starts": _starts, "widths": _widths, "ends": _ends})

if self._mcols is not None and self._mcols.shape[1] > 0:
output = pl.concat([output, self._mcols.to_polars()])
output = pl.concat([output, self._mcols.to_polars()], how="horizontal")

if self._names is not None:
output = output.with_columns(names=self._names)
Expand Down

0 comments on commit 97dbf00

Please sign in to comment.