From 8e5b475a01f1a246ff01f7cf414e3d403d4e9a19 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 6 Mar 2020 13:27:03 -0600 Subject: [PATCH] inefficient data load (urgh) --- pipeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipeline.py b/pipeline.py index 65eda3e..15d562a 100644 --- a/pipeline.py +++ b/pipeline.py @@ -269,7 +269,8 @@ if __name__ == '__main__' : if 'file' in args : reader = lambda: pd.read_csv(args['file']) ; else: - reader = lambda: Components().get(args) + _df = Components().get(args) + reader = lambda: _df args['reader'] = reader if 'generate' in SYS_ARGS :