@@ -941,7 +941,7 @@ def set_printoptions(precision=None, column_space=None, max_rows=None,
941
941
max_columns = None , colheader_justify = None ,
942
942
max_colwidth = None , notebook_repr_html = None ,
943
943
date_dayfirst = None , date_yearfirst = None ,
944
- multi_sparse = None , encoding = None ):
944
+ pprint_nest_depth = None , multi_sparse = None , encoding = None ):
945
945
"""
946
946
Alter default behavior of DataFrame.toString
947
947
@@ -965,6 +965,10 @@ def set_printoptions(precision=None, column_space=None, max_rows=None,
965
965
When True, prints and parses dates with the day first, eg 20/01/2005
966
966
date_yearfirst : boolean
967
967
When True, prints and parses dates with the year first, eg 2005/01/20
968
+ pprint_nest_depth : int
969
+ Defaults to 3.
970
+ Controls the number of nested levels to process when pretty-printing
971
+ nested sequences.
968
972
multi_sparse : boolean
969
973
Default True, "sparsify" MultiIndex display (don't display repeated
970
974
elements in outer levels within groups)
@@ -987,6 +991,8 @@ def set_printoptions(precision=None, column_space=None, max_rows=None,
987
991
print_config .date_dayfirst = date_dayfirst
988
992
if date_yearfirst is not None :
989
993
print_config .date_yearfirst = date_yearfirst
994
+ if pprint_nest_depth is not None :
995
+ print_config .pprint_nest_depth = pprint_nest_depth
990
996
if multi_sparse is not None :
991
997
print_config .multi_sparse = multi_sparse
992
998
if encoding is not None :
0 commit comments