10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
简单的 Excel 文件处理工具。用于读取、创建、编辑 .xlsx 和 .csv 文件,适合基本的数据操作任务,如读取数据、简单计算、生成表格等。
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install anmu14641/simple-excelInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
import pandas as pd
# 读取 xlsx 或 csv
df = pd.read_excel('file.xlsx')
df = pd.read_csv('file.csv')
# 读取指定sheet
df = pd.read_excel('file.xlsx', sheet_name='Sheet1')
import pandas as pd
# 保存为 xlsx
df.to_excel('output.xlsx', index=False)
# 保存为 csv
df.to_csv('output.csv', index=False)
import pandas as pd
# 筛选数据
df[df['列名'] > 10]
# 添加新列
df['新列'] = df['列1'] + df['列2']
# 分组统计
df.groupby('类别').sum()
# 排序
df.sort_values('金额', ascending=False)
| 操作 | 代码 |
|---|---|
| 查看前几行 | df.head() |
| 查看数据类型 | df.dtypes |
| 统计摘要 | df.describe() |
| 选择列 | df[['列A', '列B']] |
| 筛选行 | df[df['列'] > 100] |
| 删除列 | df.drop('列名', axis=1) |
| 重命名列 | df.rename(columns={'旧名': '新名'}) |
| 填充空值 | df.fillna(0) |
| 导出指定sheet | df.to_excel('file.xlsx', sheet_name='新sheet') |
index=False 避免导出索引列These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# Simple Excel - 简化版 Excel 处理
## 快速开始
### 读取 Excel 文件
```python
import pandas as pd
# 读取 xlsx 或 csv
df = pd.read_excel('file.xlsx')
df = pd.read_csv('file.csv')
# 读取指定sheet
df = pd.read_excel('file.xlsx', sheet_name='Sheet1')
```
### 写入 Excel 文件
```python
import pandas as pd
# 保存为 xlsx
df.to_excel('output.xlsx', index=False)
# 保存为 csv
df.to_csv('output.csv', index=False)
```
### 简单数据处理
```python
import pandas as pd
# 筛选数据
df[df['列名'] > 10]
# 添加新列
df['新列'] = df['列1'] + df['列2']
# 分组统计
df.groupby('类别').sum()
# 排序
df.sort_values('金额', ascending=False)
```
## 常用操作
| 操作 | 代码 |
|------|------|
| 查看前几行 | `df.head()` |
| 查看数据类型 | `df.dtypes` |
| 统计摘要 | `df.describe()` |
| 选择列 | `df[['列A', '列B']]` |
| 筛选行 | `df[df['列'] > 100]` |
| 删除列 | `df.drop('列名', axis=1)` |
| 重命名列 | `df.rename(columns={'旧名': '新名'})` |
| 填充空值 | `df.fillna(0)` |
| 导出指定sheet | `df.to_excel('file.xlsx', sheet_name='新sheet')` |
## 注意事项
- 使用 `index=False` 避免导出索引列
- 中文字符在 Excel 中通常能正常显示
- 大文件建议使用 csv 格式generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.