def clean(bundle, before, after, keep_last): """Clean up data downloaded with the ingest command.""" bundles_module.clean( bundle, before, after, keep_last, )
def clean(bundle, before, after, keep_last): """Clean up data downloaded with the ingest command. """ bundles_module.clean( bundle, before, after, keep_last, )
def clean(bundle, before, after, keep_last): """清理使用`ingest`命令存储的数据 """ bundles_module.clean( bundle, before, after, keep_last, )
def main(): from zipline.pipeline.fundamentals.ctable import convert_sql_data_to_bcolz ingest_start_time = time.time() convert_sql_data_to_bcolz() duration = format(time.time() - ingest_start_time, '0.2f') log.info('{} was done. duration is {} seconds'.format( 'to_bcolz', duration)) # keep last 2 for bundle_name in ('cnstock', '.test'): ingest_data(bundle_name) bundles_module.clean(bundle_name, keep_last=2)