8000 feat: Add method to configure DataFrame display options in PySessionC… · kosiew/datafusion-python@b401e1a · GitHub
[go: up one dir, main page]

Skip to content

Commit b401e1a

Browse files
committed
feat: Add method to configure DataFrame display options in PySessionConfig
1 parent 028f0ab commit b401e1a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/context.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ impl PySessionConfig {
214214
Self::from(self.config.clone().with_repartition_file_min_size(size))
215215
}
216216

217+
fn with_dataframe_display_config(&self, display_config: DataframeDisplayConfig) -> Self {
218+
let mut config = self.clone();
219+
config.display_config = display_config;
220+
config
221+
}
222+
217223
fn with_parquet_pruning(&self, enabled: bool) -> Self {
218224
Self::from(self.config.clone().with_parquet_pruning(enabled))
219225
}

0 commit comments

Comments
 (0)
0