seaborn
यह क्या करती है
यह स्किल एजेंट को Python में seaborn लाइब्रेरी से सांख्यिकीय चार्ट बनाना सिखाती है। यह डेटा को तेज़ी से देखने के लिए है, जैसे मान कैसे फैले हैं या दो चर आपस में कैसे संबंधित हैं।
कब इस्तेमाल करें
- ✓जब उपयोगकर्ता बॉक्स या वायलिन प्लॉट से समूहों में मानों का फैलाव देखना चाहता है।
- ✓जब उपयोगकर्ता पेयर प्लॉट से कई चरों के बीच संबंध खोजना चाहता है।
- ✓जब उपयोगकर्ता के पास डेटा तालिका है और उसे त्वरित हीटमैप या तुलना चार्ट चाहिए।
Skill का लिंक
https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/seaborn/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस डेटा तालिका में मेरे टेस्ट स्कोर की तीनों कक्षाओं की तुलना करने वाले बॉक्स प्लॉट दिखाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट डेटा को तालिका में लोड करता है, मेल खाता seaborn प्लॉट प्रकार चुनता है, और seaborn की डिफ़ॉल्ट शैली से उसे बनाता है। अधिक विस्तृत बदलावों के लिए matplotlib इस्तेमाल हो सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Seaborn Statistical Visualization
Overview
Seaborn is a Python visualization library for creating publication-quality statistical graphics. Use this skill for dataset-oriented plotting, multivariate analysis, automatic statistical estimation, and complex multi-panel figures with minimal code.
Design Philosophy
Seaborn follows these core principles:
- Dataset-oriented: Work directly with DataFrames and named variables rather than abstract coordinates
- Semantic mapping: Automatically translate data values into visual properties (colors, sizes, styles)
- Statistical awareness: Built-in aggregation, error estimation, and confidence intervals
- Aesthetic defaults: Publication-ready themes and color palettes out of the box
- Matplotlib integration: Full compatibility with matplotlib customization when needed
Quick Start
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
# Load example dataset
df = sns.load_dataset('tips')
# Create a simple visualization
sns.scatterplot(data=df, x='total_bill', y='tip', hue='day')
plt.show()
Core Plotting Interfaces
Function Interface (Traditional)
The function interface provides specialized plotting functions organized by visualization type. Each category has axes-level functions (plot to single axes) and figure-level functions (manage entire figure with faceting).
When to use:
- Quick exploratory analysis
- Single-purpose visualizations
- When you need a specific plot type
Objects Interface (Modern)
The seaborn.objects interface provides a declarative, composable API similar to ggplot2. Build visualizations by chaining methods to specify data mappings, marks, transformations, and scales.
When to use:
- Complex layered visualizations
- When you need fine-grained control over transformations
- Building custom plot types
- Programmatic plot generation
from seaborn import objects as so
# Declarative syntax
(
so.Plot(data=df, x='total_bill', y='tip')
.add(so.Dot(), color='day')
.add(so.Line(), so.PolyFit())
)
Plotting Functions by Category
Relational Plots (Relationships Between Variables)
Use for: Exploring how two or more variables relate to each other
scatterplot()- Display individual observations as pointslineplot()- Show trends and changes (automatically aggregates and computes CI)relplot()- Figure-level interface with automatic faceting
Key parameters:
x,y- Primary variableshue- Color encoding for additional categorical/continuous variablesize- Point/line size encodingstyle- Marker/line style encodingcol,row- Facet into multiple subplots (figure-level only)
# Scatter with multiple semantic mappings
sns.scatterplot(data=df, x='total_bill', y='tip',
hue='time', size='size', style='sex')
# Line plot with confidence intervals
sns.lineplot(data=timeseries, x='date', y='value', hue='category')
# Faceted relational plot
sns.relplot(data=df, x='total_bill', y='tip',
col='time', row='sex', hue='smoker', kind='scatter')
Distribution Plots (Single and Bivariate Distributions)
Use for: Understanding data spread, shape, and probability density
histplot()- Bar-based frequency distributions with flexible binningkdeplot()- Smooth density estimates using Gaussian kernelsecdfplot()- Empirical cumulative distribution (no parameters to tune)rugplot()- Individual observation tick marksdisplot()- Figure-level interface for univariate and bivariate distributionsjointplot()- Bivariate plot with marginal distributionspairplot()- Matrix of pairwise relationships across dataset
Key parameters:
x,y- Variables (y optional for univariate)hue- Separate distributions by categorystat- Normalization: "count", "frequency", "probability", "density"bins/binwidth- Histogram binning controlbw_adjust- KDE bandwidth multiplier (higher = smoother)fill- Fill area under curvemultiple- How to handle hue: "layer", "stack", "dodge", "fill"
# Histogram with density normalization
sns.histplot(data=df, x='total_bill', hue='time',
stat='density', multiple='stack')
# Bivariate KDE with contours
sns.kdeplot(data=df, x='total_bill', y='tip',
fill=True, levels=5, thresh=0.1)
# Joint plot with marginals
sns.jointplot(data=df, x='total_bill', y
अक्सर पूछे जाने वाले सवाल
क्या यह अपने-आप सांख्यिकी निकालती है?
हाँ। स्किल कहती है कि seaborn में अंतर्निहित एग्रीगेशन और विश्वास अंतराल होते हैं।
कब कोई दूसरा टूल इस्तेमाल करूँ?
स्किल इंटरैक्टिव प्लॉट के लिए plotly और प्रकाशन शैली के लिए वैज्ञानिक विज़ुअलाइज़ेशन स्किल सुझाती है।
क्या यह matplotlib पर बनी है?
हाँ। स्किल कहती है कि यह matplotlib पर बनी है और उसके कस्टमाइज़ेशन के साथ काम करती है।
जानकारी
लेखक का मूल विवरण
Statistical visualization with pandas integration. Use for quick exploration of distributions, relationships, and categorical comparisons with attractive defaults. Best for box plots, violin plots, pair plots, heatmaps. Built on matplotlib. For interactive plots use plotly; for publication styling use scientific-visualization.
लोकप्रियता
- GitHub स्टार
- 5.6k
- रैंकिंग में स्थान
- #14772
- लाइसेंस
- MIT
- अपडेट की गई
- 14/5/2026
कमेंट
- …
इस repository की और skills
office-academic-skill
5.6kआपके एजेंट को रिसर्च पेपर को Word रिपोर्ट में बदलने और संपादन योग्य चीनी-प्रधान शैक्षिक PowerPoint स्लाइड बनाने देती है, स्पीकर नोट्स और लेआउट जाँच के साथ।
research-writing-skill
5.6kआपके एजेंट को रिसर्च पेपर के भाग, सार और रिव्यूअर के जवाब लिखने, संशोधित करने और निखारने देती है, सूत्र, शीर्षक और उद्धरण जैसे दिए गए हैं वैसे ही रखते हुए।
scientific-toolkit-skill
5.6kआपके एजेंट को सिग्नल और इमेज प्रोसेसिंग, सांख्यिकी, सिमुलेशन और प्रकाशन-योग्य चित्रों के लिए MATLAB या Python वैज्ञानिक कोड लिखने और डीबग करने देती है।
matlab
5.6kआपके एजेंट को मैट्रिक्स गणित, सिग्नल और इमेज प्रोसेसिंग, अवकल समीकरण, ऑप्टिमाइज़ेशन और प्लॉट के लिए MATLAB और GNU Octave स्क्रिप्ट लिखने और डीबग करने देती है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।