Backticks `x` as an alias for Q('x')
还没有人认领这个 Issue。
评估
调研方向
该 issue 提议在 Patsy 的公式语法中让反引号表达式成为 Q('...') 的别名,示例涉及 x/y 以及与 R 风格字段寻址的兼容性。由于没有指定文件、测试或入口点,因此首先定位公式解析器和现有的 Q() 处理逻辑。完成的标准是反引号表达式与 Q() 表达式行为等价,并且为所示案例提供覆盖。
由索引模型根据 Issue 内容生成。
描述
This is a suggestion to implement backticks as an alias for quoting Q('...'). E.g.:
Q('x/y')
==
`x/y`
Rationale:
- Traditional:
Rsyntax allows addressing fields as:
data$`x/y`
- User convenience: less letters and no need to select two different quotation marks.
- 主要语言
- Python
- 星标
- 989
- 派生
- 108
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pydata/patsy 的其他 Issue
-
VarLookupDict should implement __iter__, causes CPython crash when using statsmodels in marimo notebook可能已有人在做 @kouyouqi123 于 142 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 1/5 1 小时以内 新手友好度 72/100
-
难度 1/5 1 小时以内 新手友好度 68/100
-
cc() truncates periodic coordinates for integer input with fractional bounds可能已有人在做 @ktz03 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
-
`build._eval_factor` error condition attempts to access attribute `dtype` on `DataFrame` object, but no such attribute exists可能已有人在做 @kouyouqi123 于 142 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 55/100
相似的 Issue
-
good first issue tools
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug deferred domain:ci P1
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
docling-project/docling-mcp#147 ·
-
issue: A pipe model's Valves button ignores the Allow Chat Valves permission可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug confirmed issue
难度 2/5 1-3 小时 新手友好度 72/100
open-webui/open-webui#32771 · 1 条评论 ·
维护者通常 1 天内回复
-
Scheduled Security Scan is failing on main可能已有人在做 @pkupt 今天认领。 未关闭security-scan-failure
难度 1/5 1-3 小时 新手友好度 74/100
semantica-agi/semantica#2045 ·
维护者通常 2 天内回复