Mercurial > repos > iuc > table_compute
diff scripts/table_compute.py @ 5:3bf5661c0280 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/table_compute commit f0fd699a4e713c57ab7d3d9d8cbb18b41aa6c7cd
author | iuc |
---|---|
date | Mon, 14 Nov 2022 10:54:20 +0000 |
parents | 93a3ce78ce55 |
children |
line wrap: on
line diff
--- a/scripts/table_compute.py Tue Apr 20 15:46:10 2021 +0000 +++ b/scripts/table_compute.py Mon Nov 14 10:54:20 2022 +0000 @@ -57,7 +57,7 @@ for col in data.columns] data.index = [row.strip() if type(row) is str else row for row in data.index] - return(data) + return data @staticmethod def rangemaker(tab): @@ -106,8 +106,8 @@ err_mess = "%s should not be equal or contain a zero" % nums if err_mess: print(err_mess) - return(None) - return(out) + return None + return out # Set decimal precision @@ -318,7 +318,7 @@ pivot_values = params["PIVOT"]["pivot_values"] pivot_aggfunc = params["PIVOT"]["pivot_aggfunc"] - if not(pivot_aggfunc): + if not pivot_aggfunc: out_table = data.pivot( index=pivot_index, columns=pivot_column, values=pivot_values )