Skip to main content

An implementation of the DataFrame specification in Python

Project description

This is the official implementation of the DataFrame specification provided by Raven Computing.

Getting Started

Install via:

pip install raven-pydf

After installation you can use the entire DataFrame API by importing one class:

from raven.struct.dataframe import DataFrame

# read a DataFrame file into memory
df = DataFrame.read("/path/to/myFile.df")

# show the first 10 rows on stdout
print(df.head(10))

Alternatively, you can import all concrete Column types directly, for example:

from raven.struct.dataframe import (DefaultDataFrame,
                                    IntColumn,
                                    DoubleColumn,
                                    StringColumn)

# create a DataFrame with 3 columns and 3 rows
df = DefaultDataFrame(
        IntColumn("A", [1, 2, 3]),
        DoubleColumn("B", [4.4, 5.5, 6.6]),
        StringColumn("C", ["cat", "dog", "horse"]))

print(df)
# _| A B   C
# 0| 1 4.4 cat
# 1| 2 5.5 dog
# 2| 3 6.6 horse

Compatibility

This library requires Python3.7 or higher.

Internally, this library uses Numpy for array operations. The minimum required version is v1.19.0

Documentation

The unified documentation is available here.

Additional features implemented in Python are documented in the Wiki.

License

This library is licensed under the Apache License Version 2 - see the LICENSE for details.

Project details


Download files

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

Source Distribution

raven-pydf-1.1.3.tar.gz (66.9 kB view details)

Uploaded Source

Built Distribution

raven_pydf-1.1.3-py3-none-any.whl (92.8 kB view details)

Uploaded Python 3

File details

Details for the file raven-pydf-1.1.3.tar.gz.

File metadata

  • Download URL: raven-pydf-1.1.3.tar.gz
  • Upload date:
  • Size: 66.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.10

File hashes

Hashes for raven-pydf-1.1.3.tar.gz
Algorithm Hash digest
SHA256 b093349fbc3ff310290854ddc40cb4d6405046459c7ccd92dc0a913d9480589e
MD5 4edbcf2a062e7007a088bf84d25c1a0e
BLAKE2b-256 99c298ca1f35703657afdb57bb062c539f9966993e2b014fb5ffe33f8f46a520

See more details on using hashes here.

File details

Details for the file raven_pydf-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: raven_pydf-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 92.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.10

File hashes

Hashes for raven_pydf-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 302a0b02475c4c737e679aa1a068f4dca1da4b8f6b293c648b7153d019758805
MD5 6c0a9e393b09ac71b76c03a06a0b52e9
BLAKE2b-256 ed5d901b00b6e4ef99454a8bc248333691dcf8328dbae71311bf49f9e4dca2b7

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