From 93850f8a1d665b642172f3df7022a7aef2db4d19 Mon Sep 17 00:00:00 2001 From: Jason Regina Date: Wed, 16 Mar 2022 14:07:31 -0500 Subject: [PATCH] increase chunk size --- python/nwis_client/src/hydrotools/nwis_client/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/nwis_client/src/hydrotools/nwis_client/cli.py b/python/nwis_client/src/hydrotools/nwis_client/cli.py index 5e39d58f..d8f246e3 100644 --- a/python/nwis_client/src/hydrotools/nwis_client/cli.py +++ b/python/nwis_client/src/hydrotools/nwis_client/cli.py @@ -54,7 +54,7 @@ def write_to_csv( ofile.write(output) # Write data to file - data.to_csv(ofile, mode="a", index=False, float_format="{:.2f}".format, header=header, chunksize=2000) + data.to_csv(ofile, mode="a", index=False, float_format="{:.2f}".format, header=header, chunksize=20000) @click.command() @click.argument("sites", nargs=-1, required=False)