Skip to main content

Temporian is a Python package for feature engineering of temporal data, focusing on preventing common modeling errors and providing a simple and powerful API, a first-class iterative development experience, and efficient and well-tested implementations of common and not-so-common temporal data preprocessing functions.

Project description

Temporian logo

tests formatting docs

Temporian is a Python package for feature engineering of temporal data, focusing on preventing common modeling errors and providing a simple and powerful API, a first-class iterative development experience, and efficient and well-tested implementations of common and not-so-common temporal data preprocessing functions.

Installation

Temporian is available on PyPI. To install it, run:

pip install temporian

Getting Started

This is how a minimal end-to-end example looks like:

import temporian as tp

# Load data and create input node.
evset = tp.from_csv("temporal_data.csv", timestamp_column="date")
source = evset.node()

# Apply operators to create a processing graph.
sma = tp.simple_moving_average(source, window_length=tp.duration.days(7))

# Run the graph.
result_evset = sma.evaluate({source: evset})

# Show output.
print(result_evset)
result_evset.plot()

This is an example temporal_data.csv to use with the code above:

date,feature_1,feature_2
2023-01-01,10.0,3.0
2023-01-02,20.0,4.0
2023-02-01,30.0,5.0

Check the Getting Started tutorial to try it out!

Key features

These are what set Temporian apart.

  • Simple and powerful API: Temporian exports high level operations making processing complex programs short and ready to read.
  • Flexible data model: Temporian models temporal data as a sequence of events, supporting non-uniform sampling timestamps seamlessly.
  • Prevents modeling errors: Temporian programs are guaranteed not to have future leakage unless explicitly specified, ensuring that models are not trained on future data.
  • Iterative development: Temporian can be used to develop preprocessing pipelines in Colab or local notebooks, allowing users to visualize results each step of the way to identify and correct errors early on.
  • Efficient and well-tested implementations: Temporian contains efficient and well-tested implementations of a variety of temporal data processing functions. For instance, our implementation of window operators is x2000 faster than the same function implemented with NumPy.
  • Wide range of preprocessing functions: Temporian contains a wide range of preprocessing functions, including moving window operations, lagging, calendar features, arithmetic operations, index manipulation and propagation, resampling, and more. For a full list of the available operators, see the operators documentation.

Documentation

The official documentation is available at temporian.readthedocs.io.

Contributing

Contributions to Temporian are welcome! Check out the contributing guide to get started.

Credits

This project is a collaboration between Google and Tryolabs.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

temporian-0.1.1.tar.gz (132.3 kB view details)

Uploaded Source

Built Distributions

temporian-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

temporian-0.1.1-cp311-cp311-macosx_12_0_x86_64.whl (389.5 kB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

temporian-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

temporian-0.1.1-cp310-cp310-macosx_12_0_x86_64.whl (388.0 kB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

temporian-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (433.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

temporian-0.1.1-cp39-cp39-macosx_12_0_x86_64.whl (388.1 kB view details)

Uploaded CPython 3.9 macOS 12.0+ x86-64

temporian-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (431.9 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

temporian-0.1.1-cp38-cp38-macosx_12_0_x86_64.whl (387.9 kB view details)

Uploaded CPython 3.8 macOS 12.0+ x86-64

File details

Details for the file temporian-0.1.1.tar.gz.

File metadata

  • Download URL: temporian-0.1.1.tar.gz
  • Upload date:
  • Size: 132.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1039-azure

File hashes

Hashes for temporian-0.1.1.tar.gz
Algorithm Hash digest
SHA256 84c414fe94b75898cee4d69d3b74065607df766b97c299b62eec88c1287da2b1
MD5 1f8e12dbab606cb88ff1019fd1cd75a2
BLAKE2b-256 678278ac06afa95950547cd61e1bc080e825bb15ba8e9b40a2ac2284b61a08f8

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6711e8f5b96d2aae5f7c23e983b25d20d207587518cb3915455aed62e83ef354
MD5 533ee1f1bb2cdeb1d347d879d7cb10b4
BLAKE2b-256 ddb0a4735c3dbd8fe8b68affaecf81bbcd174e75604769cc6dedda786544126e

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 5fc294284bda56b055e2ffa92df015ed2483d4bb093f24c157adb5442b5b4c4e
MD5 c222fd4c0193c36084a084fe38b36ede
BLAKE2b-256 b11c1a95742cfc454ffe04d681020e37c179d9d1dea0b47e7887bbec5cdebaa2

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 433740b19503c0e6f2417b63ec6e7e0b790625bc39cc90769a34e41a95749087
MD5 aebde42072e0f2dca7f5090b03aa4549
BLAKE2b-256 cfce83e29f1539059ebbdebc44e216d8f55467ab852d6744b735d3cc07202c79

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2797f2cda109ddbd732a7f7aed6ad8e6294a6c83bb52dcf038737b0749f2cbaf
MD5 eb2bc29ab2764b8255b7876c230ebb4a
BLAKE2b-256 7128da0760da2a54ce7ca65d98ccc29052aad01220465411a9b725661d05fdd1

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c472a7469f4ac2bc5030855b7030fc5ddcf1149d29ae8954999515f7b6e981f5
MD5 fccff2a327288335e9c2de61ccaae439
BLAKE2b-256 2c05aad7ae369e2cf8c18a3c5dc18637c24a44678619b7142f0689c7f459377c

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3f158e8777c135369d862b26226fa65b24f318ec7667f6bcb16140f6d73f6160
MD5 84f49177cadf77b3808f7e008b46b6be
BLAKE2b-256 fd00e7fddc8d58f499565780bb45202a7e9c255d791de2f6b6a03029298f5159

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2b6996e4d847bbbf458d45815db215c71c204d6126d329f96c220a5ed3052132
MD5 ed4f0946cd0964aefba83dcb2612d949
BLAKE2b-256 c19311c5af676effb57bc0e3c10614cafbe0f6fee077efd6ad6140cea806c355

See more details on using hashes here.

File details

Details for the file temporian-0.1.1-cp38-cp38-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for temporian-0.1.1-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 10a5e16d18ded6781233905fbeb2635a1604c8f52cd26ae92279983ddc2b351a
MD5 3427aef7dbbbc49b410baf722c89eab7
BLAKE2b-256 ce283714d55ab191aacc54f257a647dd10521b9f750e9dbcbe496b3d20adc971

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page