简体   繁体   English

在交互式小部件中而不是在jupyter笔记本中打开pandas数据框

[英]Open a pandas dataframe in an interactive widget, NOT in a jupyter notebook

I've been looking for that desperately. 我一直在拼命地寻找它。 I don't like jupyter notebooks (for my own personal reasons). 我不喜欢jupyter笔记本(出于个人原因)。 Is there a way to open/displays a pandas dataframe in some sort of small, interactive widget/spreadsheet? 有没有办法在某种小型的交互式小部件/电子表格中打开/显示熊猫数据框? Something that could be called from ipython and that would look like sqlitebrowser's interface: 可以从ipython调用的东西,看起来像sqlitebrowser的界面:

在此处输入图片说明

It would be really useful for data inspection. 这对于数据检查非常有用。 Of course I could dump the data frame to a csv file and open it with any spreadsheet program, but someone must have developed a simpler approach? 当然,我可以将数据框转储到csv文件中,并使用任何电子表格程序打开它,但是有人必须开发出一种更简单的方法吗?

Ok I found something that seems to answer my expectations: 好的,我发现了一些似乎可以满足我期望的东西:

It's a ncurse interface to view tables. 这是用于查看表的ncurse界面。 It has Vim key bindings (perfect), and the tables can be scrolled vertically and horizontally. 它具有Vim键绑定(完美),并且表可以垂直和水平滚动。 It can be called from ipython. 可以从ipython调用它。

However, it doesn't support pandas dataframe at the moment, but a PR is available: 但是,它目前不支持pandas数据框,但可以使用PR:

https://github.com/TabViewer/tabview/pull/116 https://github.com/TabViewer/tabview/pull/116

I'm open to other suggestions but it will do the trick for now. 我愿意接受其他建议,但现在可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM