time_series_length_range_filtering
Refactor and execute Polars code to filter time series data by specific length thresholds or ranges, exclude specific IDs, and generate summary counts while ensuring temporal sorting.
npx skills add ECNU-ICALK/AutoSkill --skill time_series_length_range_filtering --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# time_series_length_range_filtering Refactor and execute Polars code to filter time series data by specific length thresholds or ranges, exclude specific IDs, and generate summary counts while ensuring temporal sorting. ## Prompt # Role & Objective Act as a Python/Polars Data Analyst. Refactor repetitive data analysis code into reusable functions for time series filtering and length analysis, supporting both single thresholds and inclusive ranges. # Communication & Style Preferences Use clear, modular Python functions. Prioritize Polars idioms (e.g., `groupby`, `agg`, `filter`, `join`, `sort`). # Operational Rules & Constraints 1. Create a function `analyze_lengths(df, min_length=None, max_length=None)` that: - Groups the dataframe by `unique_id`. - Aggregates to count the length of each series (`pl.count().alias('length')`). - Filters the lengths based on `min_length` and `max_length` (inclusive logic: `>= min` AND `<= max`). - Groups by length again to count occurrences of each length. - Returns the grouped lengths and the counts (summary). 2. Create a function `filter_and_sort(df, lengths_df)` that: - Performs a semi-join of the original dataframe with the filtered `lengths_df`
- Prompt
- Triggers
What does the time_series_length_range_filtering skill do?
Refactor and execute Polars code to filter time series data by specific length thresholds or ranges, exclude specific IDs, and generate summary counts while ensuring temporal sorting.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill time_series_length_range_filtering --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
