Skip to content

angelini/df

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DF

Columnar in-memory DataFrames in Rust

Install

$ cargo build

# In a python 3 virtualenv
$ pip install ipython requests

Server and Python client

In one shell start the server

$ cargo run --release server

And in another shell connect to it with the Python client

$ ipython -i client.py

Then you can interact with the server using the Df class

schema = Schema([('int', Type.INT),
                 ('string', Type.STRING),
                 ('bool', Type.BOOL)])

df = Df.from_csv('data/small.csv', schema) \
       .filter('bool', Predicate(Comparator.EQUAL, Value(True))) \
       .select([c('int')]) \
       .aggregate({'int': Aggregator.AVERAGE})

df.collect()

Running the tests

$ RUST_BACKTRACE=1 cargo test --test lib

About

Columnar in-memory DataFrames

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published