用VS Code漂亮地打印 pandas 数据框 [英] Pretty print a pandas dataframe in VS Code

查看:214
本文介绍了用VS Code漂亮地打印 pandas 数据框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在VS Code中显示熊猫数据框(在调试时显示)(第一张图片),因为它在PyCharm中显示(第二张图片)?

I'd like to know if it's possible to display a pandas dataframe in VS Code while debugging (first picture) as it is displayed in PyCharm (second picture) ?

感谢您的帮助.

df 在vs代码中打印:

df print in vs code:

df 在pycharm中打印:

df print in pycharm:

推荐答案

As of the January 2021 release of the python extension, you can now view pandas dataframes with the built-in data viewer when debugging native python programs. When the program is halted at a breakpoint, right-click the dataframe variable in the variables list and select "View Value in Data Viewer"

这篇关于用VS Code漂亮地打印 pandas 数据框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆