|
1 | | -This download contains materials for the Real Python tutorial [How to Group Data Using Polars .group_by()](https://realpython.com/aggregating-and-grouping-data-in-polars-groupby/). |
| 1 | +# How to Group Data Using Polars `.group_by()` |
2 | 2 |
|
3 | | -You should create a new folder named aggregations on your computer and place each of these files inside it. You may also consider creating a [Python virtual environment](https://realpython.com/python-virtual-environments-a-primer/) within this folder. |
| 3 | +This download contains materials for the Real Python tutorial [How to Group Data Using Polars `.group_by()`](https://realpython.com/polars-groupby/). |
4 | 4 |
|
5 | | -Your download bundle contains the following files: |
| 5 | +## Installation |
| 6 | + |
| 7 | +Create a [Python virtual environment](https://realpython.com/python-virtual-environments-a-primer/), activate it, and install Polars along with its dependencies into it: |
| 8 | + |
| 9 | +```sh |
| 10 | +$ python -m venv venv/ |
| 11 | +$ source venv/bin/activate |
| 12 | +(venv) $ python -m pip install polars |
| 13 | +``` |
6 | 14 |
|
7 | | -course.parquet - This file contains all data from both `math.parquet` and `portuguese.parquet`. |
8 | | -math.parquet - This file contains data relating to a mathematics class. |
9 | | -portuguese.parquet - This file contains data relating to a Portuguese language class. |
10 | | -student.txt - This file defines every field in the three files above. |
11 | | -math_classes.parquet - This file contains data used in the time series analysis examples. |
| 15 | +## Contents |
| 16 | + |
| 17 | +Your download bundle contains the following files: |
12 | 18 |
|
13 | | -tutorial_code.ipynb - This file contains the code used in the tutorial. |
14 | | -solutions.ipynb - This file contains the solutions to the exercises. |
| 19 | +| Filename | Description | |
| 20 | +|------------------------ |------------------------------------------------------------ | |
| 21 | +| `course.parquet` | All data from both `math.parquet` and `portuguese.parquet` | |
| 22 | +| `math.parquet` | Data relating to a mathematics class | |
| 23 | +| `portuguese.parquet` | Data relating to a Portuguese language class | |
| 24 | +| `student.txt` | Defines every field in the three files above | |
| 25 | +| `math_classes.parquet` | Data used in the time series analysis examples | |
| 26 | +| `tutorial_code.ipynb` | The code used in the tutorial | |
| 27 | +| `solutions.ipynb` | The solutions to the exercises | |
0 commit comments