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,
FloatColumn,
StringColumn)
# create a DataFrame with 3 columns and 3 rows
df = DefaultDataFrame(
IntColumn("A", [1, 2, 3]),
FloatColumn("B", [4.4, 5.5, 6.6]),
StringColumn("C", ["cat", "dog", "horse"]))
print(df)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file raven-pydf-1.1.2.tar.gz
.
File metadata
- Download URL: raven-pydf-1.1.2.tar.gz
- Upload date:
- Size: 66.6 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59c405e884399066f51b626e531ce5b0e5f770cc15e7ae1f1bf1a812d1898322 |
|
MD5 | 446732e3fc7e7ceb587d00dc8799f57a |
|
BLAKE2b-256 | bf795d87453a33dc3eba7dd24ff8233e541be57e4e282e68299a36709ea0f701 |
File details
Details for the file raven_pydf-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: raven_pydf-1.1.2-py3-none-any.whl
- Upload date:
- Size: 92.6 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89cad170343d3346cb4dc42554476336aea7eb6d8053ff5d6fe47dd7b1c32eca |
|
MD5 | fcff08b89f54ce051d7d4fa572b848a7 |
|
BLAKE2b-256 | 083f815950c2e3165607e68b6ef806de456c91676006cb2f8bbe0a39bc8fd5fa |