# Analyzing Chromia blockchain data with PySpark · Big data analysis with Chromia and PySpark · Learn Chromia

> Build a Tic Tac Toe game with a Rell backend on Chromia and a Unity client.

Source: https://chromia.com/learn/big-data/introduction/

Big data analysis with Chromia and PySparkLesson 1 of 6

1. [01Analyzing Chromia blockchain data with PySpark](https://chromia.com/learn/big-data/introduction/)
2. [02Set up your project](https://chromia.com/learn/big-data/setup/)
3. [03Prepare the project](https://chromia.com/learn/big-data/project-launch/)
4. [04Run the project](https://chromia.com/learn/big-data/project-run/)
5. [05Blockchain components](https://chromia.com/learn/big-data/blockchain-side-description/)
6. [06Python components](https://chromia.com/learn/big-data/python-side-description/)

[Learn](https://chromia.com/learn/)[Big data analysis with Chromia and PySpark](https://chromia.com/learn/big-data/)

01 / 06Intermediate

# Analyzing Chromia blockchain data with PySpark

## Course objectives

After finishing this course, you can:

* Connect the Chromia blockchain to PySpark.
* Fetch data stored on the Chromia blockchain.
* Transform and aggregate that data with PySpark.
* Analyze and visualize the results to draw useful conclusions.

## Key features

* **Asynchronous execution**: Blockchain transactions run through `asyncio`, so operations don't block.
* **Blockchain interaction**: You build and sign transactions with `postchain-client-py`.
* **Environment variables**: Private keys, configuration values and other sensitive data live in a `.env` file.
* **Randomized data generation**: Product quantities and prices are produced at random.

## Potential enhancements

* Add pagination so you can pull large data sets from the node's database.
* Handle specific blockchain-related errors explicitly.
* Write transactions to a log file for debugging or auditing.
* Check environment variables and inputs before the code runs.

## Links

* [Rell documentation](https://docs.chromia.com/rell/rell-intro).
* Full source code for this course: [project repository](https://bitbucket.org/chromawallet/big-data-spark/src/main/).

Written for this site from Chromia’s public course. Code samples are the course’s own.

[← Course**Big data analysis with Chromia and PySpark**](https://chromia.com/learn/big-data/)[Next →**Set up your project**](https://chromia.com/learn/big-data/setup/)

On this page

* [Course objectives](#course-objectives)
* [Key features](#key-features)
* [Potential enhancements](#potential-enhancements)
* [Links](#links)
