st-dataframe

仓库创建 2026年7月5日最近提交 20 天前SkillHot 收录 20 天前
▸ 精选理由

提供可运行示例与版本适配说明,便于构建可编辑或可视化表格。

这个 Skill 做什么

讲解 st.dataframe 与 st.data_editor 的使用,包含样例与序列化调试。

介绍 Streamlit 的原生表格 st.dataframe 和可编辑网格 st.data_editor 的使用,包括 column_config、样式、可点选列和可编辑行等用法。需要展示或格式化 DataFrame、加进度条/小图、做点击驱动的交互或调试 Arrow 序列化与 dtype/Styler 错误时用。附带可运行示例并标注兼容的 Streamlit 版本,方便实践调试。

▸ 展开 SKILL.md 英文原文

Streamlit's native table — st.dataframe, column_config, st.data_editor. Use when displaying or formatting a DataFrame, adding sparkline/progress/link columns, making a table clickable (selection driving other widgets), building an editable grid, styling cells, or debugging Arrow serialization / dtype / Styler errors.

数据与抓取Streamlit数据表格编辑通用
0
Stars
0
Forks
6
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/4k7yvjv7w4-ops/streamlit-agent-skills/main/st-dataframe/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/4k7yvjv7w4-ops/streamlit-agent-skills/main/st-dataframe/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# st.dataframe & st.data_editor (Streamlit 1.58.x) — the free native table

Runnable proof of every claim: `st_dataframe_lab.py` in this skill folder
(`python -m streamlit run ~/.roo/skills/st-dataframe/st_dataframe_lab.py`).
Verified on Streamlit **1.58**, API-checked on **1.55**. On 1.55 TWO
things in this skill don't exist yet: `selection_default=` and the
`single-row-required` selection mode (both 1.56+) — use plain
`single-row` and treat an empty selection as row 0 in code.

**Grid matrix (shared with the other grid skills):** display + formatting +
row-selection + editing → **this skill, native table** · JS-computed styling
or grouping UI → [streamlit-aggrid] · pivot/tree wired to Pyth
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有