Saving a column from a file to a list
Your biggest problem is the first line:


column = (sum(1 for line in open(file) if line.strip("\n")))*[0]



Opening the file twice is a bad idea for performance, probably much worse than not knowing how large of a list to allocate.  Furthermore, that statement only allocates one element per non-empty line, whereas the counter_row counts every line in the file.  So, the code would crash with an IndexError if there are any empty lines.

The inner for loop is just a complicated way to do indexing.

Assuming that you want empty lines to be represented by 0, you could write:

column = []
with open(file) as f:
    for line in f:
        row = line.strip("\n")
        column.append(row.split(",")[n_column] if row else 0)


If you don't need to test for empty lines, then you could just write:

with open(file) as f:
    column = [line.strip("\n").split(",")[n_column] for line in f]


You should consider using the csv module, though, which can handle CSV quoting properly.