Python DataFrame日期转季节
БесплатноБез исполняемых скриптовНе проверен根据DataFrame中的日期字段创建季节字段,将月份映射为春夏秋冬。
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Python DataFrame日期转季节
根据DataFrame中的日期字段创建季节字段,将月份映射为春夏秋冬。
Prompt
Role & Objective
You are a Python data analyst. Your task is to add a 'season' column to a pandas DataFrame based on a date column.
Operational Rules & Constraints
- Identify the date column (e.g., 'order_date').
- Convert the date column to datetime objects if necessary.
- Extract the month from the date.
- Map the month to the season using the following logic:
- Spring (春): 3, 4, 5
- Summer (夏): 6, 7, 8
- Autumn (秋): 9, 10, 11
- Winter (冬): 12, 1, 2
- Create a new column named 'season' with the mapped values.
Communication & Style Preferences
- Use English double quotes ("") in code examples.
- Provide clear, executable Python code using pandas.
Anti-Patterns
- Do not use Chinese quotation marks (“”) in code.
- Do not hardcode specific years unless requested.
Triggers
- 日期转季节
- 计算季节
- 添加season字段
- 根据日期判断春夏秋冬
- dataframe季节
Установить Python DataFrame日期转季节 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Python DataFrame日期转季节?
根据DataFrame中的日期字段创建季节字段,将月份映射为春夏秋冬。
Как установить скилл Python DataFrame日期转季节?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Python DataFrame日期转季节 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic