|
85 | 85 |
|
86 | 86 | Parameters
|
87 | 87 | ----------
|
88 |
| -filepath_or_buffer : str, path object, or file-like object |
| 88 | +filepath_or_buffer : str, path object or file-like object |
89 | 89 | Any valid string path is acceptable. The string could be a URL. Valid
|
90 | 90 | URL schemes include http, ftp, s3, and file. For file URLs, a host is
|
91 | 91 | expected. A local file could be: file://localhost/path/to/table.csv.
|
92 | 92 |
|
93 |
| - If you want to pass in a path object, pandas accepts either |
94 |
| - ``pathlib.Path`` or ``py._path.local.LocalPath``. |
| 93 | + If you want to pass in a path object, pandas accepts any ``os.PathLike``. |
95 | 94 |
|
96 | 95 | By file-like object, we refer to objects with a ``read()`` method, such as
|
97 | 96 | a file handler (e.g. via builtin ``open`` function) or ``StringIO``.
|
@@ -728,13 +727,14 @@ def read_fwf(
|
728 | 727 |
|
729 | 728 | Parameters
|
730 | 729 | ----------
|
731 |
| - filepath_or_buffer : str, path object, or file-like object |
| 730 | + filepath_or_buffer : str, path object or file-like object |
732 | 731 | Any valid string path is acceptable. The string could be a URL. Valid
|
733 | 732 | URL schemes include http, ftp, s3, and file. For file URLs, a host is
|
734 |
| - expected. A local file could be: file://localhost/path/to/table.csv. |
| 733 | + expected. A local file could be: |
| 734 | + ``file://localhost/path/to/table.csv``. |
735 | 735 |
|
736 |
| - If you want to pass in a path object, pandas accepts either |
737 |
| - ``pathlib.Path`` or ``py._path.local.LocalPath``. |
| 736 | + If you want to pass in a path object, pandas accepts any |
| 737 | + ``os.PathLike``. |
738 | 738 |
|
739 | 739 | By file-like object, we refer to objects with a ``read()`` method,
|
740 | 740 | such as a file handler (e.g. via builtin ``open`` function)
|
|
0 commit comments