> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Data & Analysis

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

## Overview

Devin excels at data manipulation, analysis, and visualization tasks. Whether you need to process datasets, create visualizations, or automate data workflows, Devin can help streamline your data operations.

## Use Cases

1. Hosting and populating Jupyter notebooks with data analysis
2. Creating custom data visualizations
3. Analyzing and visualizing financial/economic data
4. Statistical modeling and data processing
5. Time series analysis and forecasting

## Example Prompts

<AccordionGroup>
  <Accordion title="Visualize inflation adjusted prices" icon="chart-line">
    <PromptBlock>
      ```txt Visualize inflation adjusted prices theme={null}
      Hi Devin, please go to https://beta.data.gov.sg/ and visualize how the distribution of flat prices has been changing over time. Then report back with any interesting insights.
      ```
    </PromptBlock>
  </Accordion>

  <Accordion title="Analyze California Housing Prices" icon="chart-line">
    <PromptBlock>
      ```txt Analyze California Housing Prices theme={null}
      Hey Devin! Can you create a plot showing average real estate price by city? Only include the top 20 most expensive cities. Here's the dataset: https://www.kaggle.com/datasets/kanchana1990/real-estate-dataset-california
      ```
    </PromptBlock>
  </Accordion>
</AccordionGroup>

## Example Sessions

### Data Analysis & Visualization

**Netflix Shows/Movies Analysis**

An interactive analysis of Netflix's content library, exploring trends in genres, release dates, and ratings using Python and Pandas.

[https://app.devin.ai/devin/4f803558dc1e45ddb489fb93848015ae](https://app.devin.ai/devin/4f803558dc1e45ddb489fb93848015ae)

<iframe src="https://app.devin.ai/devin/4f803558dc1e45ddb489fb93848015ae?embedded=true" width="100%" height="800px" />

### Code Repository Analysis

**Repository Visualization with Gource**

Visual representation of repository commit history using Gource, demonstrating code evolution over time.

[https://app.devin.ai/devin/8fe32e3a349a4842b2d787e5ccac931b](https://app.devin.ai/devin/8fe32e3a349a4842b2d787e5ccac931b)

<iframe src="https://app.devin.ai/devin/8fe32e3a349a4842b2d787e5ccac931b?embedded=true" width="100%" height="800px" />

### Advanced Jupyter Notebook Examples

Each notebook demonstrates specialized data analysis techniques:

* **[Audio Analysis](https://app.devin.ai/devin/bb9ff93037ed4d5f9690099e5269f285)**: Visualization of audio waveforms and spectrograms for sound processing
* **[Image Processing](https://app.devin.ai/devin/a725564c943e4974ae2df16e54b14a5d)**: Implementation of CAPTCHA solving techniques using computer vision
* **[Data Visualization](https://app.devin.ai/devin/ce43eb22d1aa48c594b1fd8915ed5130)**: Advanced techniques for visualizing data series with color gradients
* **[Statistical Analysis](https://app.devin.ai/devin/453af5136fea4500a8e3956e2644a8a8)**: Mathematical modeling and optimization of probability-based strategies

### Additional Visualizations

**Repository Analysis**

* **[Drawdb Visualization](https://app.devin.ai/devin/d98c5e3b4bef43c88b395a0862c36d76)**: Visual analysis of database schema and relationships
