Mercurial > repos > jjohnson > pandas_pivot_table
diff pandas_pivot_table.py @ 2:6f05390deffa draft
"planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/pandas_pivot_table/ commit 1ca7433aaa606c636f796c75b6cfd8a080e2d5bc-dirty"
author | jjohnson |
---|---|
date | Wed, 16 Dec 2020 17:44:58 +0000 |
parents | c02f59711eb6 |
children | 4b65133e0722 |
line wrap: on
line diff
--- a/pandas_pivot_table.py Wed Dec 16 16:13:51 2020 +0000 +++ b/pandas_pivot_table.py Wed Dec 16 17:44:58 2020 +0000 @@ -58,6 +58,11 @@ default=None, help='fill value for missing values' ) + p.add_argument( + '-f', '--float_format', + default='%0.6f', + help='' + ) args = p.parse_args() def getValueType(val): @@ -128,7 +133,10 @@ fill_value=fill_value) pdf_cols = ['_'.join(reversed(p)) if isinstance(p, tuple) else p for p in pdf.columns.tolist()] - pdf.to_csv(args.output, sep='\t', float_format='%0.6f', header=pdf_cols) + pdf.to_csv(args.output, + sep='\t', + float_format=args.float_format, + header=pdf_cols) if __name__ == "__main__":