| 712 | |
| 713 | |
| 714 | def make_reader(reader, reader_name, file_type): |
| 715 | def read( |
| 716 | urlpath, |
| 717 | blocksize="default", |
| 718 | lineterminator=None, |
| 719 | compression="infer", |
| 720 | sample=256000, |
| 721 | sample_rows=10, |
| 722 | enforce=False, |
| 723 | assume_missing=False, |
| 724 | storage_options=None, |
| 725 | include_path_column=False, |
| 726 | **kwargs, |
| 727 | ): |
| 728 | return read_pandas( |
| 729 | reader, |
| 730 | urlpath, |
| 731 | blocksize=blocksize, |
| 732 | lineterminator=lineterminator, |
| 733 | compression=compression, |
| 734 | sample=sample, |
| 735 | sample_rows=sample_rows, |
| 736 | enforce=enforce, |
| 737 | assume_missing=assume_missing, |
| 738 | storage_options=storage_options, |
| 739 | include_path_column=include_path_column, |
| 740 | **kwargs, |
| 741 | ) |
| 742 | |
| 743 | read.__doc__ = READ_DOC_TEMPLATE.format(reader=reader_name, file_type=file_type) |
| 744 | read.__name__ = reader_name |
| 745 | return read |
| 746 | |
| 747 | |
| 748 | read_csv = dataframe_creation_dispatch.register_inplace( |