Skip to content

Commit 6e46d43

Browse files
committed
refactor: streamline TableProvider creation from DataFrame by consolidating method calls
1 parent 6869919 commit 6e46d43

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/table.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ impl PyTableProvider {
8282
pub fn from_dataframe(df: &PyDataFrame) -> Self {
8383
// Clone the inner DataFrame and convert it into a view TableProvider.
8484
// `into_view` consumes a DataFrame, so clone the underlying DataFrame
85-
// (this mirrors the previous implementation which used
86-
// `self.df.as_ref().clone().into_view()`).
87-
let table_provider = df.inner_df().as_ref().clone().into_view();
88-
Self::new(table_provider)
85+
Self::new(df.inner_df().as_ref().clone().into_view())
8986
}
9087

9188
/// Create a `TableProvider` from a `DataFrame` by converting it into a view.

0 commit comments

Comments
 (0)