probcomp / BayesDB

A Bayesian database table for querying the probable implications of data as easily as SQL databases query the data itself. New implementation in http://github.com/probcomp/bayeslite
http://probcomp.csail.mit.edu/software/bayesdb/
Apache License 2.0
891 stars 52 forks source link

Added functions parse_csv_line and read_pandas_df to data_utils.py to create list-of-list... #18

Closed mdec closed 10 years ago

mdec commented 10 years ago

These functions use the pandas.read_csv() method to output a pandas data frame to a StringIO object, then parse that object into the list-of-lists data format used by BayesDB. It assumes a header row in the input data frame.