Read a pyarrow.Table from Feather format Parameters ---------- source : str file path, or file-like object You can use MemoryMappedFile as source, for explicitly use memory map. columns : sequence, optional Only read a specific set of columns. If not provided, a
(source, columns=None, memory_map=False, use_threads=True)
| 287 | |
| 288 | |
| 289 | def read_table(source, columns=None, memory_map=False, use_threads=True): |
| 290 | """ |
| 291 | Read a pyarrow.Table from Feather format |
| 292 | |
| 293 | Parameters |
| 294 | ---------- |
| 295 | source : str file path, or file-like object |
| 296 | You can use MemoryMappedFile as source, for explicitly use memory map. |
| 297 | columns : sequence, optional |
| 298 | Only read a specific set of columns. If not provided, all columns are |
| 299 | read. |
| 300 | memory_map : boolean, default False |
| 301 | Use memory mapping when opening file on disk, when source is a str |
| 302 | use_threads : bool, default True |
| 303 | Whether to parallelize reading using multiple threads. |
| 304 | |
| 305 | Returns |
| 306 | ------- |
| 307 | table : pyarrow.Table |
| 308 | The contents of the Feather file as a pyarrow.Table |
| 309 | """ |
| 310 | return _read_table_internal(source, columns=columns, |
| 311 | memory_map=memory_map, |
| 312 | use_threads=use_threads) |