Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve: Add more relevant snippets to the snippets panel (1/2) #3709

Merged
merged 62 commits into from
Feb 14, 2025

Conversation

Haleshot
Copy link
Contributor

@Haleshot Haleshot commented Feb 6, 2025

📝 Summary

This PR (1/2) adds data visualization and manipulation snippets for common DS libraries; relevant issue #3602. The snippets cover Pandas (add to existing list), Polars, DuckDB, Altair (add to existing list), and Matplotlib, aiding in what I believe is common ("boilerplate") coding lines for data analysis/engineering projects/workflows in notebooks.

🔍 Description of Changes

Pandas Snippets (26-36)
Category Snippets
Core Operations Memory Optimization, Data Types
Data Transformation Pivot Tables, Reshaping, Merging
Time Series Window Operations, DateTime Features
Analysis Groupby, Aggregations, Boolean Filtering

Key additions include memory optimization, efficient window operations, and advanced datetime handling.

Polars Snippets (0-10)
Category Key Features
Core Operations Lazy evaluation, joins, grouping
Performance Memory optimization, efficient IO
Data Types String ops, timestamps, categoricals
Analytics Stats, window functions

Focuses on high-performance data operations with lazy evaluation patterns.

Altair Snippets (9-14)
Category Features
Basic Charts Scatter, bar, histogram
Interactivity Brushing, linking, filtering
Statistical Viz Box plots, distributions
Multi-View Faceting, dashboards

Emphasizes interactive visualizations and statistical graphics.

Matplotlib Snippets (0-11)
Category Components
Basic Plotting Line, scatter, histograms
Layout Subplots, gridspec
Styling Themes, annotations
Scientific Viz Error bars, 3D plots

Covers essential scientific visualization patterns.

Note: This is part 1 of 2 PRs focused on enhancing existing snippets sidebar panel.

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

📜 Reviewers

@akshayka OR @mscolnick

Copy link

vercel bot commented Feb 6, 2025

@Haleshot is attempting to deploy a commit to the marimo Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 2:12pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2025 2:12pm

@akshayka akshayka changed the title improv: Add more relevant snippets to the snippets panel (1/2) improve: Add more relevant snippets to the snippets panel (1/2) Feb 11, 2025
akshayka
akshayka previously approved these changes Feb 11, 2025
Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✂️🚀

Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.11.5-dev3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants