序列化/IO/转换
方法 | 解释 |
---|---|
DataFrame.from_dict(data[, orient, dtype, …]) | 根据字典对象构造DataFrame |
DataFrame.from_records(data[, index, …]) | 将结构化或记录ndarray转换为DataFrame |
DataFrame.to_parquet([path, engine, …]) | 将DataFrame写入二进制拼板格式 |
DataFrame.to_pickle(path[, compression, …]) | 将对象Pickle(序列化)到文件 |
DataFrame.to_csv([path_or_buf, sep, na_rep, …]) | 将对象写入CSV文件 |
DataFrame.to_hdf(path_or_buf, key[, mode, …]) | 使用HDFStore将包含的数据写入HDF 5文件 |
DataFrame.to_sql(name, con[, schema, …]) | 将存储在DataFrame中的记录写入SQL数据库 |
DataFrame.to_dict([orient, into]) | 将DataFrame转换为字典 |
DataFrame.to_excel(excel_writer[, …]) | 将对象写入Excel工作表 |
DataFrame.to_json([path_or_buf, orient, …]) | 将对象转换为JSON字符串 |
DataFrame.to_html([ |