File size: 3,332 Bytes
4e933a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
license: cc-by-4.0
language:
- en
pretty_name: "Chicago taxi rides"
tags:
- zenodo
- scientific-data
- parquet
configs:
- config_name: "chicago-taxi"
  data_files:
  - split: train
    path: "chicago-taxi.parquet"
  default: true
---

# Chicago taxi rides

## Description

<p>Taxi trips from 2019 to 2021, derived from a <a href="https://data.cityofchicago.org/Transportation/Taxi-Trips-2013-2023-/wrvz-psew/about_data">larger dataset</a> published by the <a href="https://data.cityofchicago.org/">City of Chicago Data Portal</a>.</p>
<p>This subset has been converted into a Parquet file for use in the _Thinking in Arrays_ tutorial presented at SciPy 2022, 2023, 2024, 2025, and 2026.</p>
<ul>
<li><a href="https://cfp.scipy.org/2023/talk/XBUC8S/">Tutorial abstract</a> (2023)</li>
<li><a href="https://www.youtube.com/watch?v=d7etLJeK20M">Video of tutorial</a> (2023)</li>
<li><a href="https://github.com/jpivarski-talks/2023-07-11-scipy2023-tutorial-thinking-in-arrays">Tutorial materials</a> (2023) and <a href="https://github.com/jpivarski-talks/2023-07-11-scipy2023-tutorial-thinking-in-arrays/blob/main/part-3/project.ipynb">specific lesson</a> that uses this dataset</li>
</ul>
<p>It has this nested schema:</p>
<pre><code>&gt;&gt;&gt; import awkward as ak
&gt;&gt;&gt; a = ak.from_parquet("data/chicago-taxi.parquet")
&gt;&gt;&gt; a.type.show()
7728 * var * {
    trip: {
        sec: ?float32,
        km: ?float32,
        begin: {
            lon: ?float64,
            lat: ?float64,
            time: ?datetime64[ms]
        },
        end: {
            lon: ?float64,
            lat: ?float64,
            time: ?datetime64[ms]
        },
        path: var * {
            londiff: float32,
            latdiff: float32
        }
    },
    payment: {
        fare: ?float32,
        tips: ?float32,
        total: ?float32,
        type: categorical[type=string]
    },
    company: categorical[type=string]
}</code></pre>
<p>which is 7728 taxis, each with a variable number of trips. Each trip has a length in seconds and kilometers, a begin and end longitude/latitude/time, as well as a variable-length path (relative to the begin position). Each trip also has payment information (type can be "Unknown", "Cash", "Credit Card", "No Charge", "Mobile", "Prcard", "Dispute", "Pcard", "Prepaid"). Each taxi belongs to one of 65 companies.</p>
<p>This dataset was previously published at the following URL: <a href="https://pivarski-princeton.s3.us-east-1.amazonaws.com/chicago-taxi.parquet">https://pivarski-princeton.s3.us-east-1.amazonaws.com/chicago-taxi.parquet</a></p>

## Authors

- Pivarski, Jim — Princeton University
- Chicago Data Portal

## Citation

```bibtex
@misc{zenodo14537442,
  title = {Chicago taxi rides},
  author = {Pivarski, Jim and Chicago Data Portal},
  year = {2022},
  publisher = {Zenodo},
  doi = {10.5281/zenodo.14537442},
  url = {https://zenodo.org/records/14537442}
}
```

## Original Source

**Repository:** [Zenodo](https://zenodo.org/records/14537442)

**DOI:** [10.5281/zenodo.14537442](https://doi.org/10.5281/zenodo.14537442)

**Publication Date:** 2022-06-06

**Version:** Not specified

**Original Publisher:** Zenodo

**Original License:** cc-by-4.0

## Provenance

This dataset was originally published on Zenodo.

The original authors and DOI are preserved above.