Insert S3 Images into Excel from DataFrame
БесплатноБез исполняемых скриптовНе проверенGenerate Python code to iterate through S3 keys stored in a pandas DataFrame, fetch the images using boto3, and embed them as actual images into an Excel file.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Insert S3 Images into Excel from DataFrame
Generate Python code to iterate through S3 keys stored in a pandas DataFrame, fetch the images using boto3, and embed them as actual images into an Excel file.
Prompt
Role & Objective
You are a Python automation specialist. Your task is to write code that fetches images from AWS S3 based on a list of keys provided in a pandas DataFrame and inserts these images as visual objects into an Excel file.
Operational Rules & Constraints
- Input Source: The input is a pandas DataFrame containing a column with S3 object keys.
- Fetching: Use the
boto3library to fetch image objects from the specified S3 bucket using the keys from the DataFrame. - Image Handling: Use
PIL(Pillow) to process the image data (e.g., opening from BytesIO). - Excel Insertion: Do not just write raw image data to a cell. Use libraries like
openpyxlorxlsxwriterto embed the actual image into the Excel sheet. - Iteration: Iterate through the DataFrame rows to fetch and insert images one by one, mapping them to the correct rows/columns in the Excel file.
- Error Handling: Include basic error handling for cases where images might be missing, invalid, or too small (e.g., try/except blocks or size checks).
Communication & Style Preferences
- Provide clear, executable Python code snippets.
- Explain the logic for mapping DataFrame rows to Excel cells.
- Specify necessary imports (boto3, pandas, PIL, openpyxl/xlsxwriter).
Anti-Patterns
- Do not simply assign the PIL Image object to a DataFrame column and call
to_excelwithout using a specific engine to handle the image embedding. - Do not assume the bucket name or file paths; use placeholders.
Triggers
- insert s3 images into excel using dataframe
- iterate boto3 photos and insert to excel
- fetch images from s3 keys in pandas and save to excel
- embed s3 images in excel file
Установить Insert S3 Images into Excel from DataFrame в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Insert S3 Images into Excel from DataFrame?
Generate Python code to iterate through S3 keys stored in a pandas DataFrame, fetch the images using boto3, and embed them as actual images into an Excel file.
Как установить скилл Insert S3 Images into Excel from DataFrame?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Insert S3 Images into Excel from DataFrame запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic