Skip to content

Commit e1defce

Browse files
authored
Update RFC.md
1 parent 38c0ce4 commit e1defce

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

RFC.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This RFC proposes the creation of a `TrackingDataContainer`: a shared, standardi
66

77
The container combines high-performance, zero-copy data access with a rich metadata model, enabling efficient workflows, semantic column selection, and reproducibility. All packages in the ecosystem are expected to use this container as the primary I/O interface.
88

9+
Note: it should probably extend the `TrackingDataset` from kloppy.
10+
911
---
1012

1113
## Motivation
@@ -47,6 +49,12 @@ Packages access the container via a consistent interface, with optional access t
4749
```python
4850
container = kloppy.load_as_container("data.json", "metadata.json")
4951

52+
# or:
53+
from kloppy import secondspectrum
54+
container = secondspectrum.load(...normal arguments..., as_container=True)
55+
56+
# or container must be fully backwards compatible (best option)
57+
5058
# Add ball speed
5159
container.add_metric("ball_speed", expression="sqrt((ball.x - ball.x.shift(1))**2 + ...)", engine="polars")
5260

0 commit comments

Comments
 (0)