Skip to content

Commit

Permalink
fix(python): fix to_pandas edge case (#5293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 21, 2022
1 parent fd8de18 commit 8609cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/src/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ impl PyDataFrame {
}

pub fn to_pandas(&mut self) -> PyResult<Vec<PyObject>> {
self.df.rechunk();
self.df.as_single_chunk_par();
Python::with_gil(|py| {
let pyarrow = py.import("pyarrow")?;
let names = self.df.get_column_names();
Expand Down

0 comments on commit 8609cdf

Please sign in to comment.