Extract columns from file to another file
Question: I got a text file with 17 columns and a few 100s lines. How do I extract only
column nr2, 14 and 16 to another file with only those 3 columns with a python
script? I want to make a file with 17 columns to a new file with only 3 of
those


Answer: you can use `nympy`:

    
    
    import csv
    import numpy as np
    data = np.array(x for x in csv.reader(open("your_file")))
    data[0::, column_number]
                ^^^
              replace column_number with the number you want
    

