1 2 3 4 5 6 7 8 9 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]);