python - Plotting duration on a timeline in Python
问题描述
I'd like to plot the sequential spans of different people vertically on a shared (temporal) x-axis. My data looks like this:
Name start end
0 John Rutledge 1790-02-15 1791-03-05
1 William Cushing 1790-02-02 1810-09-13
2 James Wilson 1789-10-05 1798-08-21
3 John Blair 1790-02-02 1795-10-25
4 James Iredell 1790-05-12 1799-10-20
Desired output is something like this:
I've seen some fairly complex 'roll-your-own' versions of this, but isn't there something simple?
解决方案
推荐阅读
- css - 在悬停选择器期间移动其他元素的问题
- emacs - 如何在缓冲区中制作自定义 emacs 键绑定打印文本?
- django - 如何将关键字参数添加到基于类的视图 success_url
- javascript - 在Javascript中提取方法链?
- javascript - 转换后的内容使 html 结结巴巴地到达页面末尾
- machine-learning - 为什么最近邻 - 方法被认为是机器学习?
- .htaccess - 我可以为此制定重写规则吗?
- google-apps-script - 从“getRange”数组中获取特定元素
- gwt - 更改 GWT/SmartGWT 中样式表的加载顺序
- javascript - 我们在解析或拒绝括号(JavaScript Promises)中传递了什么?