pandas提供的将表格型数据读取为DataFrame对象的函数。
| 函数 | 说明 |
| read_csv | 从文件、URL、文件型对象中加载带分隔符的数据。默认分隔符为逗号。 |
| read_table | 从文件、URL、文件型对象中加载带分隔符的数据。默认分隔符为制表符(“\t”)。 |
| read_fwf | 读取定宽列格式的数据(也就是说没有分隔符) |
| read_clipboard | 读取剪贴板中的数据,可以看作read_table的剪贴板版本。在将网页转换为表格时很有用 |
array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) string(13) "likecs_art_db" array(1) { ["query"]=> array(1) { ["match_all"]=> object(stdClass)#28 (0) { } } } array(1) { ["createtime.keyword"]=> array(1) { ["order"]=> string(4) "desc" } } int(10) int(0) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) }
pandas提供的将表格型数据读取为DataFrame对象的函数。
| 函数 | 说明 |
| read_csv | 从文件、URL、文件型对象中加载带分隔符的数据。默认分隔符为逗号。 |
| read_table | 从文件、URL、文件型对象中加载带分隔符的数据。默认分隔符为制表符(“\t”)。 |
| read_fwf | 读取定宽列格式的数据(也就是说没有分隔符) |
| read_clipboard | 读取剪贴板中的数据,可以看作read_table的剪贴板版本。在将网页转换为表格时很有用 |
相关文章: