1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| from IPython.display import display, HTML display(HTML("<style>.container { width:100% !important; }</style>"))
import warnings warnings.filterwarnings('ignore')
from tqdm import tqdm from pprint import pprint from matplotlib import pylab from seaborn import set_style set_style("whitegrid") %matplotlib inline
from platform import system os_name = system() print(os_name)
from matplotlib import rcParams rcParams["axes.unicode_minus"]=False if os_name == r"Windows": rcParams["font.sans-serif"]=["SimHei"] elif os_name == r"Darwin": rcParams['font.family'] = 'PingFang HK' else: pass
import os
print(os.getcwd())
from pandas import set_option set_option('display.max_info_rows',1000) set_option('display.max_rows',1000) set_option('display.max_columns',1000) set_option('display.max_colwidth',1000) set_option('display.float_format',lambda x : '%.4f' % x)
|