def get_features(self):
""" Pull features from the database.
:returns: features
:rtype: pandas DataFrame
"""
query = """
SELECT
*
FROM
{0}
WHERE
{1} is not null;
""".format(self.model['test_table_name'][0],
self.model['labelling'].astype(str)[0])
return(pd.read_sql(query, self.engine))
评论列表
文章目录