diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-27 15:55:43 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-27 15:55:43 +0100 |
commit | 680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d (patch) | |
tree | dfa35c00c0ca497d0a9ebb09b2ebf4408d452e2b /fiz/vaje/8/tab.py | |
parent | rtk šolsko 2023 (diff) | |
parent | ups, nisem shranil 8 vaje lyx do konca (diff) | |
download | sola-gimb-4-680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d.tar sola-gimb-4-680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d.tar.gz sola-gimb-4-680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d.tar.bz2 sola-gimb-4-680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d.tar.lz sola-gimb-4-680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d.tar.xz sola-gimb-4-680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d.tar.zst sola-gimb-4-680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d.zip |
Diffstat (limited to 'fiz/vaje/8/tab.py')
-rwxr-xr-x | fiz/vaje/8/tab.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fiz/vaje/8/tab.py b/fiz/vaje/8/tab.py new file mode 100755 index 0000000..959558b --- /dev/null +++ b/fiz/vaje/8/tab.py @@ -0,0 +1,8 @@ +#!/usr/bin/python3 +import pandas +import sys +import math +b=pandas.read_csv("/dev/stdin", sep="\t") +b.index.name = "idx" +b = b.astype(float).round(6); +b.to_csv("/dev/stdout", sep=sys.argv[1][0]); |