Skip to content

Docs for dataframe programmatic selections#14616

Merged
lukasmasuch merged 3 commits into
streamlit:developfrom
MathCatsAnd:docs-dataframe-programmatic-selections
Apr 4, 2026
Merged

Docs for dataframe programmatic selections#14616
lukasmasuch merged 3 commits into
streamlit:developfrom
MathCatsAnd:docs-dataframe-programmatic-selections

Conversation

@MathCatsAnd

Copy link
Copy Markdown
Contributor

Describe your changes

Update docs for programmatic selections for dataframes and include an example.


Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copilot AI review requested due to automatic review settings April 2, 2026 17:07
@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for contributing to Streamlit! 🎈

Please make sure you have read our Contributing Guide. You can find additional information about Streamlit development in the wiki.

The review process:

  1. Initial triage: A maintainer will apply labels, approve CI to run, and trigger AI-assisted reviews. Your PR may be flagged with status:needs-product-approval if the feature requires product team sign-off.

  2. Code review: A core maintainer will start reviewing your PR once:

    • It is marked as 'ready for review', not 'draft'
    • It has status:product-approved (or doesn't need it)
    • All CI checks pass
    • All AI review comments are addressed

We're receiving many contributions and have limited review bandwidth — please expect some delay. We appreciate your patience! 🙏

@snyk-io

snyk-io Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@MathCatsAnd MathCatsAnd changed the title Docs dataframe programmatic selections Docs for dataframe programmatic selections Apr 2, 2026
Comment thread lib/streamlit/elements/arrow.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Streamlit’s st.dataframe documentation (docstrings in arrow.py) to better describe programmatic selection via Session State and to add a concrete example for setting selections.

Changes:

  • Adjusted DataframeSelectionState docstring text around programmatic selection support and expanded to multiple examples.
  • Added a new example demonstrating programmatic selection updates via st.session_state for st.dataframe.
  • Simplified/clarified the key parameter docs for reading/updating selection state via Session State.

Comment thread lib/streamlit/elements/arrow.py Outdated
Comment thread lib/streamlit/elements/arrow.py Outdated

@lukasmasuch lukasmasuch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lukasmasuch lukasmasuch added impact:users PR changes affect end users change:docs PR contains documentation change labels Apr 4, 2026
@lukasmasuch lukasmasuch enabled auto-merge (squash) April 4, 2026 14:56
@lukasmasuch lukasmasuch merged commit 0ede673 into streamlit:develop Apr 4, 2026
65 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:docs PR contains documentation change impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants