agentsclimarketplace

Time series imputation feasibility analysis

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/time-series-imputation-feasibility-analysis

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill time-series-imputation-feasibility-analysis

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

2.4 KB, 418 tokens by cl100k_base, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.