网站更新内容:请访问: https://bigdata.ministep.cn/

pandas基础配置

pandas中DataFrame关于显示值省略的解决方法

pd.set_option('max_colwidth',200)
参考:pandas中DataFrame关于显示值省略的解决方法 - CSDN博客

python中怎么用matplotlib在一行里生成多个图?

plt.subplot()
参考:python中怎么用matplotlib在一行里生成多个图?

matplotlib调整子图间距

fig.tight_layout()#调整整体空白

pd.set_option('precision', 5) #设置精度
pd.set_option('display.float_format', lambda x: '%.5f' % x) #为了直观的显示数字,不采用科学计数法
pd.options.display.max_rows = 200 #最多显示200行
posted @ 2021-04-04 19:31  ministep88  阅读(129)  评论(0编辑  收藏  举报
网站更新内容:请访问:https://bigdata.ministep.cn/