https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html
pandas.read_csv(filepath_or_buffer, sep=’, ‘, delimiter=None, header=‘infer’, names=None, index_col=None, usecols=None, squeeze=False, prefix=None, mangle_dupe_cols=True, dtype=None, engine=None, converters=None, true_values=None, false_values=None, skipinitialspace=False, skiprows=None, skipfooter=0, nrows=None, na_values=None, keep_default_na=True, na_filter=True, verbose=False, skip_blank_lines=True, parse_dates=False, infer_datetime_format=False, keep_date_col=False, date_parser=None, dayfirst=False, iterator=False, chunksize=None, compression=‘infer’, thousands=None, decimal=b’.’, lineterminator=None, quotechar=’"’, quoting=0, doublequote=True, escapechar=None, comment=None, encoding=None, dialect=None, tupleize_cols=None, error_bad_lines=True, warn_bad_lines=True, delim_whitespace=False, low_memory=True, memory_map=False, float_precision=None)
filepath_or_buffer:文件路径
sep:分隔符,默认为逗号
header:要用作列名的行数
index_col:列用作数据帧的行标签
usecols:返回列的子集
nrows:要读取的文件行数
with open('address.csv','r') as csvfile:
d = pd.read_csv('address.csv', usecols=['Age','name'],nrow=10)
List = d.values.tolist()