@@ -823,14 +823,17 @@ def configure_display(
823823 """Configure display options for DataFrame representation.
824824
825825 Args:
826- max_table_bytes: Maximum bytes to display for table presentation (default: 2MB).
826+ max_table_bytes: Maximum bytes to display for table presentation
827+ (default: 2MB).
827828 Set to lower value for large tables to limit memory usage.
828829 min_table_rows: Minimum number of table rows to display (default: 20).
829830 This is used for initial display and in notebooks.
830- max_cell_length: Maximum length of a cell before it gets minimized (default: 25).
831+ max_cell_length: Maximum length of a cell before it gets minimized
832+ (default: 25).
831833 Longer cells will be truncated with an expand button.
832- max_table_rows_in_repr: Maximum number of rows to display in string representation
833- (default: 10).
834+ max_table_rows_in_repr: Maximum number of rows to display in string
835+ representation
836+ (default: 10).
834837
835838 Raises:
836839 ValueError: If any of the provided values are less than or equal to 0.
@@ -844,7 +847,8 @@ def configure_display(
844847 max_table_rows_in_repr ,
845848 )
846849 ):
847- raise ValueError ("All values must be greater than 0." )
850+ error_msg = "All values must be greater than 0."
851+ raise ValueError (error_msg )
848852
849853 self .df .configure_display (
850854 max_table_bytes , min_table_rows , max_cell_length , max_table_rows_in_repr
@@ -855,8 +859,12 @@ def reset_display_config(self) -> None:
855859 self .df .reset_display_config ()
856860
857861 @property
858- def display_config (self ):
859- """Get the current display configuration."""
862+ def display_config (self ) -> "DisplayConfig" :
863+ """Get the current display configuration.
864+
865+ Returns:
866+ DisplayConfig: The current display configuration settings
867+ """
860868 return self .df .display_config
861869
862870 @deprecated ("Use :py:func:`unnest_columns` instead." )
0 commit comments