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
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.4.tar.gz
.
File metadata
- Download URL: raven-pydf-1.1.4.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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e335bcbffb8e11d06e1e1010729c501f08ebde282227b4a80540c0ebaa950f81 |
|
MD5 | d2ef30fa99a933301b116d4a1b7dff52 |
|
BLAKE2b-256 | b523b7f075b1e469d76a443f4d796738f06895d476274543cad721b93b391e57 |
File details
Details for the file raven_pydf-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: raven_pydf-1.1.4-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/47.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a454e79107301d450a30e630ba133229588a1f36d67af8086abd7e2958577be2 |
|
MD5 | cc94d29e7fbfce4c6b70e7e085b3e8d7 |
|
BLAKE2b-256 | 641a3d59c3daea7a95fc1100d4414258682c76e15bdb7d89f47d17e4b939d1b9 |