summaryrefslogtreecommitdiffstats
path: root/fiz/vaje/7/tab.py
diff options
context:
space:
mode:
Diffstat (limited to 'fiz/vaje/7/tab.py')
-rwxr-xr-xfiz/vaje/7/tab.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/fiz/vaje/7/tab.py b/fiz/vaje/7/tab.py
new file mode 100755
index 0000000..eba035e
--- /dev/null
+++ b/fiz/vaje/7/tab.py
@@ -0,0 +1,10 @@
+#!/usr/bin/python3
+import pandas
+import sys
+import math
+b=pandas.read_csv("/dev/stdin", sep="\t")
+b.index.name = "idx"
+b["sila"] = (9.81*b["m"]/1000)
+b["lambda"] = (2*b["pollamb"])
+b = b.astype(float).round(6);
+b.to_csv("/dev/stdout", sep=sys.argv[1][0]);