Skip to content

Commit

Permalink
Avoid unwrap
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Grove <andygrove73@gmail.com>
  • Loading branch information
simicd and andygrove committed Feb 4, 2023
1 parent 455d889 commit be988b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ impl PyDataFrame {

// Executes this DataFrame to get the total number of rows.
fn count(&self, py: Python) -> PyResult<usize> {
let count = wait_for_future(py, self.df.as_ref().clone().count());
Ok(count.unwrap())
Ok(wait_for_future(py, self.df.as_ref().clone().count())?)
}
}

0 comments on commit be988b7

Please sign in to comment.