Skip to content

Commit 0b5b323

Browse files
committed
refactor: replace wait_for_future with spawn_future for async DataFrame describe method
1 parent 478086a commit 0b5b323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dataframe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ impl PyDataFrame {
476476
/// Calculate summary statistics for a DataFrame
477477
fn describe(&self, py: Python) -> PyDataFusionResult<Self> {
478478
let df = self.df.as_ref().clone();
479-
let stat_df = wait_for_future(py, df.describe())??;
479+
let stat_df = spawn_future(py, async move { df.describe().await })?;
480480
Ok(Self::new(stat_df))
481481
}
482482

0 commit comments

Comments
 (0)