本文共 407 字,大约阅读时间需要 1 分钟。
class pandas.DataFrame(data=None, index=None, columns=None, dtype=None, copy=False)
参数 | 意义 | 数据结构 |
---|---|---|
data | 需要被转换的数据 | ndarray (structured or homogeneous), Iterable, dict, or DataFrame |
index | 设置行索引 | Index or array-like |
columns | 设置列名 | Index or array-like |
dtype | 设置数据类型 | dtype, default None |
copy | 备份数据 | boolean, default False |
dtype = float意味着,把data数据中能转化为float的全部转化成float,不能转换的保持原来状态。
.
. . 2019-04-01 17:20:14转载地址:http://qwwr.baihongyu.com/