📜  csv 到 numpy 数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:36.794000             🧑  作者: Mango

代码示例4
import csv

results = []
with open("input.csv") as csvfile:
    reader = csv.reader(csvfile, quoting=csv.QUOTE_NONNUMERIC) # change contents to floats
    for row in reader: # each row is a list
        results.append(row)