Skip to content

Commit 7643d28

Browse files
authored
DOC: Fix remaining typos in docstrings 'handler' --> 'handle' (#36650)
1 parent 3265d6f commit 7643d28

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ def to_parquet(
22982298
path : str or file-like object
22992299
If a string, it will be used as Root Directory path
23002300
when writing a partitioned dataset. By file-like object,
2301-
we refer to objects with a write() method, such as a file handler
2301+
we refer to objects with a write() method, such as a file handle
23022302
(e.g. via builtin open function) or io.BytesIO. The engine
23032303
fastparquet does not accept file-like objects.
23042304

pandas/io/feather_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def read_feather(
104104
``os.PathLike``.
105105
106106
By file-like object, we refer to objects with a ``read()`` method,
107-
such as a file handler (e.g. via builtin ``open`` function)
107+
such as a file handle (e.g. via builtin ``open`` function)
108108
or ``StringIO``.
109109
columns : sequence, default None
110110
If not provided, all columns are read.

pandas/io/json/_json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def read_json(
393393
``os.PathLike``.
394394
395395
By file-like object, we refer to objects with a ``read()`` method,
396-
such as a file handler (e.g. via builtin ``open`` function)
396+
such as a file handle (e.g. via builtin ``open`` function)
397397
or ``StringIO``.
398398
orient : str
399399
Indication of expected JSON string format.

pandas/io/orc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def read_orc(
3131
``os.PathLike``.
3232
3333
By file-like object, we refer to objects with a ``read()`` method,
34-
such as a file handler (e.g. via builtin ``open`` function)
34+
such as a file handle (e.g. via builtin ``open`` function)
3535
or ``StringIO``.
3636
columns : list, default None
3737
If not None, only these columns will be read from the file.

pandas/io/parquet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def to_parquet(
255255
path : str or file-like object
256256
If a string, it will be used as Root Directory path
257257
when writing a partitioned dataset. By file-like object,
258-
we refer to objects with a write() method, such as a file handler
258+
we refer to objects with a write() method, such as a file handle
259259
(e.g. via builtin open function) or io.BytesIO. The engine
260260
fastparquet does not accept file-like objects.
261261
@@ -333,7 +333,7 @@ def read_parquet(path, engine: str = "auto", columns=None, **kwargs):
333333
``os.PathLike``.
334334
335335
By file-like object, we refer to objects with a ``read()`` method,
336-
such as a file handler (e.g. via builtin ``open`` function)
336+
such as a file handle (e.g. via builtin ``open`` function)
337337
or ``StringIO``.
338338
engine : {'auto', 'pyarrow', 'fastparquet'}, default 'auto'
339339
Parquet library to use. If 'auto', then the option

pandas/io/parsers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
If you want to pass in a path object, pandas accepts any ``os.PathLike``.
9393
9494
By file-like object, we refer to objects with a ``read()`` method, such as
95-
a file handler (e.g. via builtin ``open`` function) or ``StringIO``.
95+
a file handle (e.g. via builtin ``open`` function) or ``StringIO``.
9696
sep : str, default {_default_sep}
9797
Delimiter to use. If sep is None, the C engine cannot automatically detect
9898
the separator, but the Python parsing engine can, meaning the latter will
@@ -798,7 +798,7 @@ def read_fwf(
798798
``os.PathLike``.
799799
800800
By file-like object, we refer to objects with a ``read()`` method,
801-
such as a file handler (e.g. via builtin ``open`` function)
801+
such as a file handle (e.g. via builtin ``open`` function)
802802
or ``StringIO``.
803803
colspecs : list of tuple (int, int) or 'infer'. optional
804804
A list of tuples giving the extents of the fixed-width

pandas/io/pytables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def read_hdf(
310310
Alternatively, pandas accepts an open :class:`pandas.HDFStore` object.
311311
312312
By file-like object, we refer to objects with a ``read()`` method,
313-
such as a file handler (e.g. via builtin ``open`` function)
313+
such as a file handle (e.g. via builtin ``open`` function)
314314
or ``StringIO``.
315315
key : object, optional
316316
The group identifier in the store. Can be omitted if the HDF file

pandas/io/sas/sasreader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def read_sas(
7474
``os.PathLike``.
7575
7676
By file-like object, we refer to objects with a ``read()`` method,
77-
such as a file handler (e.g. via builtin ``open`` function)
77+
such as a file handle (e.g. via builtin ``open`` function)
7878
or ``StringIO``.
7979
format : str {'xport', 'sas7bdat'} or None
8080
If None, file format is inferred from file extension. If 'xport' or

pandas/io/stata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
If you want to pass in a path object, pandas accepts any ``os.PathLike``.
111111
112112
By file-like object, we refer to objects with a ``read()`` method,
113-
such as a file handler (e.g. via builtin ``open`` function)
113+
such as a file handle (e.g. via builtin ``open`` function)
114114
or ``StringIO``.
115115
{_statafile_processing_params1}
116116
{_statafile_processing_params2}

0 commit comments

Comments
 (0)