Skip to content

Instantly share code, notes, and snippets.

@hadyelsahar
Created April 26, 2017 13:11
Show Gist options
  • Save hadyelsahar/8f3f1872510ebcc46abefb06b14d150e to your computer and use it in GitHub Desktop.
Save hadyelsahar/8f3f1872510ebcc46abefb06b14d150e to your computer and use it in GitHub Desktop.
import argparse
from IPython.core.debugger import Tracer;
from sklearn.preprocessing import normalize
import numpy as np
import pandas as pd
debug_here = Tracer()
import os
parser = argparse.ArgumentParser(description='filter extracted attributes')
parser.add_argument('-i', '--input', help='input file name', required=True)
parser.add_argument('-o', '--out', help='input file name', required=True)
args = parser.parse_args()
with open(args.input) as f
for line in f:
# do your code here
# line is a triple line
print "Saving output file:"
fout = open(args.out,'w')
fout.write()
fout.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment