python-data

作成者: google-gemini

サンドボックス内で高度な数値計算と統計分析を実行します。

npx skills add https://github.com/google-gemini/gemini-managed-agents-templates --skill python-data

Python data skill

Run complex calculations, regressions, and aggregations using pandas and scikit-learn in the sandbox.

Workflow

  1. Write a Python script using pandas, numpy, or sklearn to:
    • Join, filter, and aggregate tables.
    • Compute statistics (mean, median, stddev, correlations).
    • Build or evaluate ML models.
    • Run statistical tests (chi-square, t-test) when appropriate.
  2. Execute in the sandbox. Run via python3 script.py.
  3. Handle errors. If the code fails, read the traceback and fix it.
  4. Return structured output. Print results as JSON for downstream skills.

Example output

[
  {"segment": "High Risk", "churn_rate": 0.34, "avg_tenure": 2.1},
  {"segment": "Low Risk",  "churn_rate": 0.05, "avg_tenure": 14.7}
]

Notes

  • Use select_dtypes(include=["object", "str"]) for categorical columns (avoids the pandas 4 deprecation warning).
  • Install missing packages with pip install -q <package> before importing.

google-geminiのその他のスキル

greeter
google-gemini
フレンドリーな挨拶スキル
official
code-reviewer
google-gemini
ローカル変更とリモートプルリクエストに対する自動コードレビュー。正確性、保守性、セキュリティにわたる構造化分析を提供。ローカルファイルシステムの変更(ステージ済みおよび未ステージ)とリモートPR(番号またはURL指定)の両方をサポートし、GitHub CLIによる自動チェックアウトを実行。コードを正確性、保守性、可読性、効率性、セキュリティ、エッジケース処理、テストカバレッジの7つの観点で分析。オプションで事前検証スイート(例:npm run preflight)を実行し、問題を検出。
official
review-duplication
google-gemini
コードレビュー中にこのスキルを使用して、コードベース内の重複機能、車輪の再発明、既存の再利用の失敗などを積極的に調査します。
official
reconciliation
google-gemini
読み込まれた経費を事前解析済みの請求書データベースと照合し、金額の不一致、請求書の欠落、業者の不一致などの差異をフラグ付けします…
official
agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
official
async-pr-review
google-gemini
ユーザーが非同期PRレビューを開始したい、PRのバックグラウンドチェックを実行したい、または以前に開始した非同期PRのステータスを確認したい場合に、このスキルをトリガーしてください…
official
ci
google-gemini
Gemini CLI向けの高性能でフェイルファストな専門スキル
official
critique
google-gemini
リポジトリのスクリプトとGitHub Actionsワークフローを監査・修正し、技術的な堅牢性とセキュリティを確保する専門知識。
official