summaryrefslogtreecommitdiffstats
path: root/fiz/vaje/8/tab.py
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-01-27 15:55:43 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-01-27 15:55:43 +0100
commit680ccebd1d440f3fd9d7eda94ddc5a1539f6b24d (patch)
treedfa35c00c0ca497d0a9ebb09b2ebf4408d452e2b /fiz/vaje/8/tab.py
parentrtk šolsko 2023 (diff)
parentups, nisem shranil 8 vaje lyx do konca (diff)
downloadsola-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-xfiz/vaje/8/tab.py8
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]);