In [ ]:
cd ~/data/planet4/sanitized_planet_four_2015-03-29/

In [ ]:
ls

In [ ]:
from odo import odo

In [ ]:
import blaze as bz

In [ ]:
p4subs = bz.Data('planet_four_subjects.json')

In [ ]:
p4subs.head()

In [ ]:
from pymongo import MongoClient

In [ ]:
client = MongoClient('localhost', 27017)

In [ ]:
db = client['planet_four']

In [ ]:
subjects = db['planet_four_subjects']
classifications = db['planet_four_classifications']

In [ ]:
subjects.find().count()

In [ ]:
subjects.find().count()

In [ ]:
odo('planet_four_classifications.json', pd.DataFrame)

In [ ]:
subjects.find_one()

In [ ]:
ls

In [ ]:
classifications = bz.Data('planet_four_classifications.json')

In [ ]:
odo("mongodb://localhost/planet_four", pd.DataFrame)

In [ ]: