polars-polars-with-plotly-visualization

Sub-skill of polars: Polars with Plotly Visualization (+1).

5 stars

Best use case

polars-polars-with-plotly-visualization is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Sub-skill of polars: Polars with Plotly Visualization (+1).

Teams using polars-polars-with-plotly-visualization should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/polars-with-plotly-visualization/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/data/analysis/polars/polars-with-plotly-visualization/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/polars-with-plotly-visualization/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How polars-polars-with-plotly-visualization Compares

Feature / Agentpolars-polars-with-plotly-visualizationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Sub-skill of polars: Polars with Plotly Visualization (+1).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Polars with Plotly Visualization (+1)

## Polars with Plotly Visualization


```python
import polars as pl
import plotly.express as px
import plotly.graph_objects as go

def create_dashboard_data(df: pl.DataFrame) -> dict:
    """Prepare data for Plotly dashboard."""

    # Time series for line chart
    daily_trend = (
        df
        .group_by("date")
        .agg([
            pl.col("revenue").sum().alias("revenue"),
            pl.col("orders").sum().alias("orders")
        ])
        .sort("date")
        .to_pandas()  # Convert for Plotly
    )

    # Category breakdown for pie chart
    category_breakdown = (
        df
        .group_by("category")
        .agg(pl.col("revenue").sum())
        .sort("revenue", descending=True)
        .to_pandas()
    )

    # Regional comparison for bar chart
    regional = (
        df
        .group_by("region")
        .agg([
            pl.col("revenue").sum(),
            pl.col("orders").count()
        ])
        .to_pandas()
    )

    return {
        "daily_trend": daily_trend,
        "category_breakdown": category_breakdown,
        "regional": regional
    }

def plot_time_series(df_pandas, x_col, y_col, title):
    """Create interactive time series plot."""
    fig = px.line(
        df_pandas,
        x=x_col,
        y=y_col,
        title=title
    )
    fig.update_layout(hovermode="x unified")
    return fig
```


## Polars with Pandas Interop


```python
import polars as pl
import pandas as pd

# Convert Polars to Pandas (when needed for libraries that require pandas)
polars_df = pl.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
pandas_df = polars_df.to_pandas()

# Convert Pandas to Polars
pandas_df = pd.DataFrame({"x": [1, 2, 3], "y": ["a", "b", "c"]})
polars_df = pl.from_pandas(pandas_df)

# Efficient conversion with zero-copy when possible
polars_df = pl.from_pandas(pandas_df, nan_to_null=True)

# Use Polars for heavy lifting, Pandas for compatibility
def hybrid_pipeline(input_path: str):
    """Use Polars for processing, Pandas for visualization libraries."""

    # Heavy processing with Polars
    processed = (
        pl.scan_parquet(input_path)
        .filter(pl.col("value") > 0)
        .group_by("category")
        .agg([
            pl.col("value").sum(),
            pl.col("value").mean().alias("avg_value")
        ])
        .collect()
    )

    # Convert for seaborn/matplotlib
    import seaborn as sns
    pandas_df = processed.to_pandas()
    sns.barplot(data=pandas_df, x="category", y="value")

    return processed
```

Related Skills

orcaflex-visualization

5
from vamseeachanta/workspace-hub

Generate visualizations from OrcaFlex and OrcaWave simulations using the shared OrcFxAPI — model views (SaveModelView), time series plots, range graphs, and interactive HTML reports. Covers both .dat/.sim (OrcaFlex) and .owd (OrcaWave) files via the same API surface.

plotly-visualization

5
from vamseeachanta/workspace-hub

Generate interactive Plotly and Matplotlib visualizations from DataFrames with configurable templates and multi-format support.

data-visualization

5
from vamseeachanta/workspace-hub

Create effective data visualizations with Python using matplotlib, seaborn, and plotly libraries

orcaflex-visualization-orcawave-mesh-export-via-diffraction

5
from vamseeachanta/workspace-hub

Sub-skill of orcaflex-visualization: OrcaWave Mesh Export via Diffraction (+4).

orcaflex-visualization-model-views

5
from vamseeachanta/workspace-hub

Sub-skill of orcaflex-visualization: Model Views (+1).

orcaflex-visualization-image-outputs

5
from vamseeachanta/workspace-hub

Sub-skill of orcaflex-visualization: Image Outputs (+1).

orcaflex-visualization-basic-visualization-configuration

5
from vamseeachanta/workspace-hub

Sub-skill of orcaflex-visualization: Basic Visualization Configuration (+1).

orcaflex-visualization-110-2026-02-23

5
from vamseeachanta/workspace-hub

Sub-skill of orcaflex-visualization: [1.1.0] - 2026-02-23 (+1).

blender-interface-orcaflex-results-to-blender-visualization

5
from vamseeachanta/workspace-hub

Sub-skill of blender-interface: OrcaFlex Results to Blender Visualization (+2).

plotly-vertical-legends-avoid-toolbar-clash

5
from vamseeachanta/workspace-hub

Sub-skill of plotly: Vertical Legends (Avoid Toolbar Clash) (+5).

plotly-javascript-cdn

5
from vamseeachanta/workspace-hub

Sub-skill of plotly: JavaScript (CDN) (+2).

plotly-html-recommended-for-reports

5
from vamseeachanta/workspace-hub

Sub-skill of plotly: HTML (Recommended for Reports) (+2).