Agent skill
polars-common-issues
Sub-skill of polars: Common Issues.
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/data/analysis/polars/common-issues
SKILL.md
Common Issues
Common Issues
Issue: Out of Memory
# Solution 1: Use streaming
result = lf.collect(streaming=True)
# Solution 2: Sink to file
lf.sink_parquet("output.parquet")
# Solution 3: Process in chunks
for chunk in pl.read_csv_batched("large.csv", batch_size=100000):
process(chunk)
Issue: Slow Performance
# Check query plan for inefficiencies
print(lf.explain(optimized=True))
# Use profiling
result = lf.profile()
print(result[1]) # Timing information
Issue: Type Mismatch in Join
# Ensure matching types before join
df1 = df1.with_columns(pl.col("id").cast(pl.Int64))
df2 = df2.with_columns(pl.col("id").cast(pl.Int64))
result = df1.join(df2, on="id")
Issue: Date Parsing Errors
# Explicit format specification
df = df.with_columns([
pl.col("date_str").str.strptime(pl.Date, "%Y-%m-%d"),
pl.col("datetime_str").str.strptime(pl.Datetime, "%Y-%m-%d %H:%M:%S")
])
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?