PPaste!

Pour Killian

Home - All the pastes - Authored by Thooms

Raw version

1
2
3
4
5
def importdata(file):
    with open(file, newline='') as csvfile:
        spamreader = csv.reader(csvfile, delimiter=' ', quotechar='"')
        values = np.array(list(spamreader), dtype=float)
    return values