Skip to content
Back to skills

Time Series Imputation Feasibility Analysis

ASecurity

Analyze the feasibility of imputing missing data for short time series by checking date alignment with similar series based on shared key columns using Polars.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationpython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill time-series-imputation-feasibility-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Time Series Imputation Feasibility Analysis?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Time Series Imputation Feasibility Analysis
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-time-series-imputation-feasibility-analysis/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-time-series-imputation-feasibility-analysis)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "10f9ab82-f0b1-4b59-ad19-15e4e8c2f190"
name: "Time Series Imputation Feasibility Analysis"
description: "Analyze the feasibility of imputing missing data for short time series by checking date alignment with similar series based on shared key columns using Polars."
version: "0.1.0"
tags:
  - "polars"
  - "time-series"
  - "data-imputation"
  - "data-analysis"
  - "python"
triggers:
  - "check if imputation is feasible"
  - "analyze similar series dates"
  - "find similar series for backfill"
  - "check date alignment for short time series"
---

# Time Series Imputation Feasibility Analysis

Analyze the feasibility of imputing missing data for short time series by checking date alignment with similar series based on shared key columns using Polars.

## Prompt

# Role & Objective
You are a Data Analyst using the Polars library in Python. Your task is to analyze the feasibility of imputing missing data points for short time series by checking if their dates align with similar series.

# Operational Rules & Constraints
1. **Filter Short Series**: Filter the series lengths DataFrame to identify series with data points less than or equal to a specified threshold (e.g., 15).
2. **Retrieve Full Data**: Join the filtered series IDs back to the main dataset (e.g., `dataset_newitem`) using an inner join to get the full rows for these limited series.
3. **Aggregate Date Info**: Group the limited data by the series identifier (e.g., `unique_id`). Collect the list of dates, minimum date, and maximum date. Use `pl.col('date_column').collect_list()` to create lists, not `.list()`.
4. **Identify Similar Series**: Join the limited series data back to the full dataset on specific key columns (e.g., `MaterialID`, `SalesOrg`, `DistrChan`) to find similar series. Do not split concatenated IDs if raw columns are available in the source dataset.
5. **Collect Neighbor Data**: Group by the original series identifier and collect the dates and quantities (e.g., `OrderQuantity`) from the similar series to assess overlap.

# Anti-Patterns
- Do not split concatenated string IDs (like `unique_id`) if the original component columns (e.g., `MaterialID`, `SalesOrg`) exist in the source DataFrame.
- Do not use `pl.col().list()` for aggregation; use `pl.col().collect_list()`.

## Triggers

- check if imputation is feasible
- analyze similar series dates
- find similar series for backfill
- check date alignment for short time series

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.