# Tutorial Q-10: Open a phone sensor log and plot it

Open a phone accelerometer log, compute its real sample rate from the time stamps, turn three axes into one magnitude, and plot the whole session and a zoom to see the steps and the faults.

Address: https://apopt.com/data/tutorials/q10-phone-log/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Open a phone sensor log and plot it* (https://apopt.com/course/tutorials/q10-phone-log/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

## Files

| file | size | rows | description |
|---|---|---|---|
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q10-phone-log/expected/printed-output.txt) | 598 B |  | Everything the tutorial prints, cell by cell |
| [raw/walk_accel.csv](https://apopt.com/data/tutorials/q10-phone-log/raw/walk_accel.csv) | 146.2 KB | 2,980 rows | a phone accelerometer log of a 60 s walk at about 50 samples a second, with time in nanoseconds and x, y, z in m/s² (synthetic, with planted faults) |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 4: Athlete Data in Python](https://apopt.com/book/ch04-python/)
- Course: [Week 4 lesson](https://apopt.com/course/week/4/)
- Homework H08: [https://apopt.com/course/assess/h08/](https://apopt.com/course/assess/h08/)

## How to cite

Tutorial Q-10: Open a phone sensor log and plot it. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q10-phone-log/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q10-phone-log/raw/walk_accel.csv")
```
