CSV Tools

Rolling Average

Calculate a moving average over a sliding window of rows

CSV Input

Try a sample:

Options

Provide CSV input above to select a column.

CSV Output

Select a column to see the rolling average...

More Options

CSV Format

Input

How to Use This Tool

This tool adds a rolling (moving) average column to your CSV. Select a numeric column and a window size, and the tool appends a new column with the moving average.

  1. Provide your CSV — Paste CSV text into the input area, drop a CSV file onto the File tab, or enter a URL on the URL tab.
  2. Select a column — Choose the numeric column and set the window size.
  3. Get your output — Copy the result to your clipboard or save it as a .csv file.

FAQ

3 questions
Does this tool upload my data?
No. It runs entirely in your browser using JavaScript. Your CSV data is never sent to a server.
What happens to the first rows?
The first (window - 1) rows produce empty cells because there aren't enough previous values to fill the window.
What is the default window size?
The default window size is 3. You can change it to any value from 2 up to the total number of rows.

More Analyze Data Tools

12 tools

More CSV Tools

89 tools