Skip to content

Comments

GH-49358: [Python][Doc] Add import statement to filters_to_expression docstring example#49359

Open
chilin0525 wants to merge 2 commits intoapache:mainfrom
chilin0525:enhance-filters-to-expression-example
Open

GH-49358: [Python][Doc] Add import statement to filters_to_expression docstring example#49359
chilin0525 wants to merge 2 commits intoapache:mainfrom
chilin0525:enhance-filters-to-expression-example

Conversation

@chilin0525
Copy link
Contributor

@chilin0525 chilin0525 commented Feb 22, 2026

Rationale for this change

The docstring example for filters_to_expression calls the function without any import statement:

>>> filters_to_expression([('foo', '==', 'bar')])

What changes are included in this PR?

Updated the filters_to_expression docstring example to add import pyarrow.parquet as pq and call the function as pq.filters_to_expression(...), making the example self-contained and consistent with the rest of the file.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Signed-off-by: ChiLin Chiu <chilin.chiou@gmail.com>
Signed-off-by: ChiLin Chiu <chilin.chiou@gmail.com>
@github-actions
Copy link

⚠️ GitHub issue #49358 has been automatically assigned in GitHub to PR creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant