python selection of set_option

1、pd.set_option('expand_frame_repr', False)

True is that you can change lines. Set to False when the line breaks are not allowed

2、pd.set_option('display.max_rows', 10)

pd.set_option('display.max_columns', 10)

The maximum number of rows and columns displayed, if the excess to display an ellipsis, this refers to the number of dataFrame columns. If you do not allow more line breaks, it will look messy.

3、pd.set_option('precision', 5)

Digits after the decimal point

4、pd.set_option('large_repr', A)

 truncate truncated representation, info represents the view information, the general election truncate

5、pd.set_option('max_colwidth', 5)

Column length

6、pd.set_option('chop_threshold', 0.5)

Displaying the absolute value of less than 0.5 0.0

7、pd.set_option('colheader_justify', 'left')

 Display center or on the left,

8、pd.set_option('display.width', 200)

Up to how many characters displayed horizontally, generally transverse to the screen 80 is not suitable, usually more with 200.

Guess you like

Origin www.cnblogs.com/Nicholasdong/p/11810775.html