【Hacker News搬运】Great Tables的设计理念
-
Title: The design philosophy of Great Tables
Great Tables的设计理念
Text:
Url: https://posit-dev.github.io/great-tables/blog/design-philosophy/
很抱歉,当前尝试抓取指定URL的内容时遇到了问题,因为读取超时了。这意味着请求在等待服务器响应时超过了设定的时间限制。由于我无法直接访问网络,我无法直接解决这个连接问题。 如果您能够访问网络,并且想要我再次尝试抓取该网页的内容,请确认URL是否有效,并且网络连接是稳定的。如果URL有更新或者需要使用其他方式访问,请告知我正确的网址。如果您想要我尝试另一个相关的任务,也请告诉我。
Post by: randyzwitch
Comments:
paddy_m: Great tables has done some really nice work on python/jupyter tables. It looks like they are almost building a "grammar of tables" similar to a grammar of graphics. More projects should write about their philosophy and aims like this.<p>I have built a different table library for jupyter called buckaroo. My approach has been different. Buckaroo aims to allow you to interactively cycle through different formats and post-processing functions to quickly glean important insights from a table while working interactively. I took the view that I type the same commands over and over to perform rudimentary exploratory data analysis, those commands and insights should be built into a table.<p>Great tables seems built so that you can manually format a table for presentation.<p><a href="https://github.com/paddymul/buckaroo">https://github.com/paddymul/buckaroo</a><p><a href="https://youtu.be/GPl6_9n31NE" rel="nofollow">https://youtu.be/GPl6_9n31NE</a>
paddy_m: Great tables在python上做了一些非常好的工作;jupyter表。看起来他们几乎要建造一个“;表的语法”;类似于图形的语法。更多的项目应该这样写他们的理念和目标<p> 我为jupyter构建了一个不同的表库,名为buckaroo。我的做法有所不同。Buckaroo旨在允许您交互地循环使用不同的格式和后处理功能,以便在交互工作时快速从表中收集重要见解。我认为,我一遍又一遍地键入相同的命令来执行基本的探索性数据分析,这些命令和见解应该构建到一个表中<p> 似乎构建了很棒的表格,以便您可以手动格式化表格以进行演示<p> <a href=“https://;/;github.com/!paddymul/:buckaroo”>https:///;github.com/;paddymul;buckaroo</a><p><a href=“https://;/;youtu.be#xx2F;GPl6_9n31NE”rel=“nofollow”>https:///;youtu.be/;GPl6_9n31NE</a>
jszymborski: The example they show of a Great Table is, to my taste, way too busy. Here is my unsolicited opinion:<p>The top and bottom horizontal rules on the Title appear to be superfluous, and I dislike how it is aligned with the first column (row labels) rather than the second. I feel like a little space to breath at the bottom, along with a bold font would add visual hierarchy w/o the clutter.<p>The row label backgrounds are far too dark and the font weight makes it hard to read. I'd prefer a very light blue here instead. I don't like the row group label ("Name") being italicized.<p>The spanner labels floating in the centre make the table hard to scan. Would be much nicer aligned left.<p>Finally, I really dislike the font (maybe this is just my browser, though).<p>I mocked-up some of the changes here, I think this is a much easier to read table:<p><a href="https://i.imgur.com/iMMf5vo.png" rel="nofollow">https://i.imgur.com/iMMf5vo.png</a>
jszymborski: 他们展示的一张很棒的桌子的例子,在我看来,太忙了。这是我不请自来的意见:<p>标题上的顶部和底部水平规则似乎是多余的,我不喜欢它与第一列(行标签)而不是第二列对齐的方式。我觉得底部有一个可以呼吸的小空间,加上加粗的字体会增加视觉层次;o杂乱<p> 行标签背景太暗,字体太重,很难阅读。I-;我更喜欢这里的淡蓝色。我不;t喜欢行组标签(“名称”)是斜体的<p> 扳手标签漂浮在中间,使桌子难以扫描。左对齐会更好<p> 最后,我真的不喜欢这种字体(也许这只是我的浏览器)<p> 我在这里模拟了一些更改,我认为这是一个更容易阅读的表:<p><a href=“https://;/;I.imgur.com/:iMMf5vo.png”rel=“nofollow”>https:///;i.imgur.com/;iMMf5vo.png</a>
bigger_cheese: I Use SAS reports in my job pretty heavily I'm keen to find alternatives - this looks pretty promising.<p>One thing in particular I'm interested in but could not see an example for is if this will let you insert "break lines" i.e. for displaying sub totals and similar.<p>For example based on the demo, which shows names and addresses from census data it might be nice to be able to break at each change in postcode and display some summary data like a count of people found at that postcode or an average age (based on the DOB) living at that postcode or similar.<p>Otherwise conditional formatting is another pain point either using rules i.e. if value in column B is greater than a specified threshold make the entire row bold. Or automatically creating a color gradient to highlight the cells ala Excel.<p>For bonus points management types like things like red and green traffic lights (or down/up arrows) you can display next to kpi data in a table It's a gimmick but wins you points.
bigger_cheese: 我在工作中大量使用SAS报告;I’我很想找到其他选择——这看起来很有希望<p> 有一件事是特别的;我感兴趣但看不到一个例子,例如这是否会让你插入“;虚线”;即用于显示小计等<p> 例如,基于演示,它显示了人口普查数据中的姓名和地址,能够在邮政编码的每一次变化处进行细分,并显示一些汇总数据,如在该邮政编码处发现的人数或居住在该邮政邮政编码处的平均年龄(基于出生日期)或类似数据,这可能会很好<p> 否则,条件格式是使用规则的另一个痛点,即如果B列中的值大于指定的阈值,则将整行加粗。或者自动创建一个颜色渐变来突出显示Excel中的单元格<p> 对于奖励积分管理类型,如红色和绿色交通灯(或向下-向上箭头),您可以在表中的kpi数据旁边显示It;这是一个噱头,但能为你赢得分数。
wglb: This a good article with some fascinating history.<p>More recent history involves the production of CALS tables <a href="https://en.wikipedia.org/wiki/CALS_Table_Model" rel="nofollow">https://en.wikipedia.org/wiki/CALS_Table_Model</a>. The company Datalogics <a href="https://en.wikipedia.org/wiki/Datalogics" rel="nofollow">https://en.wikipedia.org/wiki/Datalogics</a> was heavily involved in the CALS table initiative. Datalogics staff was part of the ISO committee forming SGML, and trained many people on SGML, including DoD staff and their contractors involved with documentation.<p>I was involved with the team that produced an editor for SGML-based documents. It had as one of its features the ability to specify the formatting of an element based on the SGML context of that element. This was before XSLT and its kin.<p>Alumni of Datalogics helped Microsoft learn about XML ("No, you can't arbitrarily switch case on XML element tags").<p>Also TeX practitioners have pretty well-formed opinions about how tables should be formatted.<p>Odd side-note: I learned that the documentation for a fighter airplane of the time, if printed out, would weigh more than the aircraft and would fill a football-field sized collection of filing cabinets.<p>And as much as many today don't like XML, coming from the SGML world it is a boon.
wglb: 这是一篇有着迷人历史的好文章<p> 最近的历史涉及CALS表的生成<a href=“https://;/;en.wikipedia.org/:wiki/!CALS_Table_Model”rel=“nofollow”>https:///;en.wikipedia.org/;wiki/;CALS_Table_Model</a>。Datalogics公司/;en.wikipedia.org/;wiki/;Datalogics</a>大量参与CALS表计划。数据逻辑工作人员是组成SGML的ISO委员会的一部分,并对许多人进行了SGML方面的培训,包括国防部工作人员及其文档承包商<p> 我参与了为基于SGML的文档制作编辑器的团队。它的功能之一是能够根据元素的SGML上下文指定该元素的格式。这是在XSLT及其亲属之前。<p>Datalogic的校友帮助Microsoft了解XML(“不,您不能在XML元素标记上任意切换大小写”)<p> 此外,对于表应该如何格式化,TeX从业者也有相当完善的意见<p> 奇怪的是:我了解到,当时战斗机的文件如果打印出来,会比飞机重,而且会装满足球场大小的文件柜<p> 和今天的许多人一样;不像XML,来自SGML世界是一个福音。
countrymile: I love this package and have been using it for a few years in R. It's great [for making] tables in html but the pdf and docx output is a little less polished. I do worry that the recent shift to bringing the python version up to speed with the R version has slowed down the R development. Though it's well worth checking out whatever your language.
countrymile: 我喜欢这个包,并且已经在R中使用了几年;它非常适合用html制作表格,但pdf和docx的输出就不那么精致了。我确实担心,最近让python版本与R版本同步的转变减缓了R的开发速度。尽管它;无论你说什么语言,都值得一试。