pydata / pydata/patsy

Backticks `x` as an alias for Q('x')

Open
#100 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
990
Forks
106
Avg merge
7d 34m
Merged PRs (30d)
1

Description

This is a suggestion to implement backticks as an alias for quoting Q('...'). E.g.:

Q('x/y')  
  ==
`x/y` 

Rationale:

  1. Traditional: R syntax allows addressing fields as:
data$`x/y`
  1. User convenience: less letters and no need to select two different quotation marks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue proposes making backtick expressions an alias for Q('...') in Patsy's formula syntax, with examples involving x/y and compatibility with R-style field addressing. No files, tests, or entry points are named, so first locate the formula parser and existing Q() handling. Done would mean backtick expressions behave equivalently to Q() expressions and have coverage for the shown cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.