Skip to content

Commit cf306c2

Browse files
authored
Docs: Update read_hdf's acceptable path types (#40206)
1 parent 794ced5 commit cf306c2

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas/io/pytables.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -348,19 +348,15 @@ def read_hdf(
348348
349349
Parameters
350350
----------
351-
path_or_buf : str, path object, pandas.HDFStore or file-like object
352-
Any valid string path is acceptable. The string could be a URL. Valid
353-
URL schemes include http, ftp, s3, and file. For file URLs, a host is
354-
expected. A local file could be: ``file://localhost/path/to/table.h5``.
351+
path_or_buf : str, path object, pandas.HDFStore
352+
Any valid string path is acceptable. Only supports the local file system,
353+
remote URLs and file-like objects are not supported.
355354
356355
If you want to pass in a path object, pandas accepts any
357356
``os.PathLike``.
358357
359358
Alternatively, pandas accepts an open :class:`pandas.HDFStore` object.
360359
361-
By file-like object, we refer to objects with a ``read()`` method,
362-
such as a file handle (e.g. via builtin ``open`` function)
363-
or ``StringIO``.
364360
key : object, optional
365361
The group identifier in the store. Can be omitted if the HDF file
366362
contains a single pandas object.

0 commit comments

Comments
 (0)