Skip to main content
This guide shows how to start analyzing Formula 1 data with tif1.

Prerequisites

Complete these prerequisites before the first use:
  • Python 3.11 or higher
  • pip or uv package manager
  • Basic knowledge of pandas or polars
  • Internet connection for data fetching

Installation

1

Install tif1

Install with pip or uv:
2

Verify Installation

Check that tif1 is installed correctly:

The First Analysis

Load and analyze data from a recent race.

Step 1: Load a session

The first session load fetches data from the CDN. Subsequent loads read from the cache.

Step 2: Explore drivers

Output:

Step 3: Analyze lap times

Step 4: Compare drivers

Step 5: Analyze telemetry

Common Patterns

Finding available data

Check the available data before a load:

Filtering Laps

Clean and filter the lap data for analysis:

Analyzing tire strategy

Weather Analysis

Performance Tips

Use async for cold cache

For a first load, use async for parallel fetching. The benchmark suite validates more than 3x speed versus sequential fetch:

Batch telemetry fetching

Never fetch telemetry in a loop:

Use Polars for large datasets

Visualization

Create a quick visualization:

Error Handling

Handle the common errors:

Configuration

Customize the tif1 configuration:

Next Steps

With the basics in place, explore further:

Tutorials

Learn advanced analysis techniques.

API Reference

Explore the complete API.

Best Practices

Learn recommended patterns.

Examples

See more code examples.

Common Issues

Cache permission errors

If permission errors occur:

Network Timeouts

If requests time out:

Memory Issues

For large datasets:

Getting Help

FAQ

Common questions and answers

Troubleshooting

Solve common problems

GitHub Issues

Report bugs or request features

Contributing

Contribute to tif1

Quickstart

Quick 30-second start

Best Practices

Recommended patterns

Examples

Common use cases

Tutorials

Step-by-step guides
Last modified on September 2, 2026