summaryrefslogtreecommitdiffstats
path: root/fiz/vaje/8/tab.py
diff options
context:
space:
mode:
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]);