def get_as_dataframe(cls, find=Queries.X, projection=Projections.all, explode=True): df = cls.to_df(db.find(find, projection)) if explode: return ready_made_exploder.fit_transform(df) else: return df
def get_not_labeled(cls): return cls.to_df(db.find(Queries.no_label, Projections.mechanical_turk))
def count_withlabels(cls): return db.find(exists("labels")).count()