jupyter 数据显示技巧

jupyter:

1. 显示数据时不要出滚动条, 全部平铺下来,方便观察数据

%%javascript

IPython.OutputArea.prototype._should_scroll = function(lines) {

    return false;

}



2. 显示数据时不要将某栏目的数据缩略, 有多少数据显示多少数据

pd.set_option('display.max_colwidth', -1)

# pd.set_option('display.max_rows', 2000)

你可能感兴趣的:(jupyter 数据显示技巧)