modelop / hadrian

Implementations of the Portable Format for Analytics (PFA)
Apache License 2.0
129 stars 49 forks source link

[Titus] Pandas support #24

Open frol opened 8 years ago

frol commented 8 years ago

I would like to suggest adding Pandas support so there would be no need in record-by-record data-copying.

animator commented 5 years ago

@frol you can easily convert pandas df to list of jsons:

import json
data = json.loads(df.to_json(orient = 'records'))
for datum in data:
    engine.action(datum)

You can check out the latest release at https://github.com/animator/titus2 and report any future issues.

Regards.