python - 如何让 DataFrame 对象像 VSCode 调试控制台中的表格一样显示?
问题描述
我设置了一个断点并开始在调试控制台上输入。它似乎打印了对象视图的字符串表示形式(pandas.DataFrame
在这种情况下为 a )。有没有让对象像 iPython 中的表格一样很好地显示出来?
这是我的launch.json
:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Debug Console",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
解决方案
推荐阅读
- checkbox - 使用复选框创建树视图
- sql-server - 隐式转换 - SQL
- wpf - 如何添加 Microsoft Edge WebView2 运行时作为先决条件
- php - 多行,一个 INSERT INTO
- java - Spring为什么要改变异常的类型
- node.js - NestJs mongoose pre hooks 没有触发
- c++ - 数据成员应该写在构造函数的初始化列表中吗?数组和向量的不同实现?
- django - 如何从父表单开始创建 Django 外键模型实例?
- java - java中不重复的随机数
- python - 尝试在 ECC 上添加两个点,但第三个点始终不在曲线上