---
name: analyze-tabular-datasets-and-generate-charts
description: "Analyzes tabular datasets by running sandboxed code to clean values, compute summary statistics, and generate charts. Use when a person shares a dataset and asks for metrics, patterns, or visualizations."
license: CC-BY-4.0
compatibility: "Needs access to: Chat, Spreadsheet, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/analyze-tabular-datasets-and-generate-charts/"
  kind: skill
  hermes:
    tags: ["data-analysis", "python", "charts", "scripting"]
    category: coding
    requires_toolsets: ["file", "terminal"]
---
# Analyze tabular datasets and generate charts

Execute sandboxed code to inspect structured data, compute metrics, and generate charts.

## When to use

Examine uploaded data files and written prompts to write and run custom analysis scripts. The bot processes structured records, calculates summary metrics, generates relevant visual plots, and explains key patterns found in the dataset.

## Inputs

- `dataset_file`: The tabular dataset file the person shares for analysis.
- `analysis_request`: The written inquiry describing metrics, patterns, or charts to produce.

## Steps

1. When you ask: User shares dataset and inquiry (A person shares a dataset and asks an analysis question in chat.)
2. Run analysis code in sandbox
3. Display statistics and plot outputs

## Instructions

Read user-provided datasets and analysis requests. Write and run code inside the sandbox terminal to clean values, calculate summary statistics, and render charts. Present key observations alongside any generated plots. Always ask for user confirmation before deleting files or saving modifications back to source storage.

## Approvals

- Deleting files requires user confirmation before proceeding.
- Saving modifications back to source storage requires user confirmation before proceeding.

## Output

Summary statistics, key observations, and generated charts presented in the chat response. (format: chat_message)

## Source

Summarized in our own words from [codeinterpreter-api: 👾 Open source implementation of the ChatGPT Code Interpreter](https://github.com/shroominic/codeinterpreter-api) (GitHub, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/analyze-tabular-datasets-and-generate-charts/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
