Plotly Express cannot process wide-form data with columns of different type
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Hi there! I’ve been trying to use px.scatter with a wide-format dataframe but, as “expected”, when i include columns in the dataframe that are not numeric i get the ValueError: Plotly Express cannot process wide-form data with columns of different type.
I can see the reason for this behavior when using something like a box plot. But i don’t get why this could be a problem for something like px.scatter when using something like x=df.columns, y=df.index, facet_col=‘variable’ where EACH wide dataframe column would be independent making its dtype irrelevant in comparison with the other columns. Could this condition be “skipped” in future versions when using a px.scatter like this?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 提到了 px.scatter 和宽格式 dataframe,但没有指定文件或测试;首先使用类型混合的列重现 ValueError,并跟踪宽格式验证流程。完成的标准是确定 scatter 是否可以接受类型彼此独立的列,同时为其他图表类型保留适当的验证,并为请求的情况添加回归覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- plotly, python
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100