@@ -868,9 +868,7 @@ def _get_gross_column_widths(self) -> Sequence[int]:
868868 body_column_widths = self ._get_body_column_widths ()
869869 return [
870870 max (* widths )
871- for widths in zip (
872- self .header_column_widths , body_column_widths
873- )
871+ for widths in zip (self .header_column_widths , body_column_widths )
874872 ]
875873
876874 def _get_body_column_widths (self ) -> Sequence [int ]:
@@ -901,9 +899,7 @@ def add_header_line(self) -> None:
901899 header_line = self .SPACING .join (
902900 [
903901 _put_str (header , col_width )
904- for header , col_width in zip (
905- self .headers , self .gross_column_widths
906- )
902+ for header , col_width in zip (self .headers , self .gross_column_widths )
907903 ]
908904 )
909905 self ._lines .append (header_line )
@@ -912,9 +908,7 @@ def add_separator_line(self) -> None:
912908 separator_line = self .SPACING .join (
913909 [
914910 _put_str ("-" * header_colwidth , gross_colwidth )
915- for header_colwidth , gross_colwidth in zip (
916- self .header_column_widths , self .gross_column_widths
917- )
911+ for header_colwidth , gross_colwidth in zip (self .header_column_widths , self .gross_column_widths )
918912 ]
919913 )
920914 self ._lines .append (separator_line )
@@ -924,9 +918,7 @@ def add_body_lines(self) -> None:
924918 body_line = self .SPACING .join (
925919 [
926920 _put_str (col , gross_colwidth )
927- for col , gross_colwidth in zip (
928- row , self .gross_column_widths
929- )
921+ for col , gross_colwidth in zip (row , self .gross_column_widths )
930922 ]
931923 )
932924 self ._lines .append (body_line )
@@ -985,7 +977,7 @@ def _gen_rows_without_counts(self) -> Iterator[Sequence[str]]:
985977 yield from zip (
986978 self ._gen_line_numbers (),
987979 self ._gen_columns (),
988- self ._gen_dtypes (),
980+ self ._gen_dtypes (),
989981 )
990982
991983 def _gen_rows_with_counts (self ) -> Iterator [Sequence [str ]]:
@@ -994,7 +986,7 @@ def _gen_rows_with_counts(self) -> Iterator[Sequence[str]]:
994986 self ._gen_line_numbers (),
995987 self ._gen_columns (),
996988 self ._gen_non_null_counts (),
997- self ._gen_dtypes (),
989+ self ._gen_dtypes (),
998990 )
999991
1000992 def _gen_line_numbers (self ) -> Iterator [str ]:
@@ -1098,7 +1090,10 @@ def _gen_rows_without_counts(self) -> Iterator[Sequence[str]]:
10981090
10991091 def _gen_rows_with_counts (self ) -> Iterator [Sequence [str ]]:
11001092 """Iterator with string representation of body data with counts."""
1101- yield from zip (self ._gen_non_null_counts (), self ._gen_dtypes ())
1093+ yield from zip (
1094+ self ._gen_non_null_counts (),
1095+ self ._gen_dtypes ()
1096+ )
11021097
11031098
11041099def _get_dataframe_dtype_counts (df : DataFrame ) -> Mapping [str , int ]:
0 commit comments