You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/user_guide/io.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2069,7 +2069,7 @@ is ``None``. To explicitly force ``Series`` parsing, pass ``typ=series``
2069
2069
seconds, milliseconds, microseconds or nanoseconds respectively.
2070
2070
* ``lines`` : reads file as one json object per line.
2071
2071
* ``encoding`` : The encoding to use to decode py3 bytes.
2072
-
* ``chunksize`` : when used in combination with ``lines=True``, return a JsonReader which reads in ``chunksize`` lines per iteration.
2072
+
* ``chunksize`` : when used in combination with ``lines=True``, return a ``pandas.api.typing.JsonReader`` which reads in ``chunksize`` lines per iteration.
2073
2073
* ``engine``: Either ``"ujson"``, the built-in JSON parser, or ``"pyarrow"`` which dispatches to pyarrow's ``pyarrow.json.read_json``.
2074
2074
The ``"pyarrow"`` is only available when ``lines=True``
2075
2075
@@ -5991,15 +5991,15 @@ Reading from Stata format
5991
5991
'''''''''''''''''''''''''
5992
5992
5993
5993
The top-level function ``read_stata`` will read a dta file and return
5994
-
either a ``DataFrame`` or a :class:`~pandas.io.stata.StataReader` that can
5994
+
either a ``DataFrame`` or a :class:`pandas.api.typing.StataReader` that can
5995
5995
be used to read the file incrementally.
5996
5996
5997
5997
.. ipython:: python
5998
5998
5999
5999
pd.read_stata("stata.dta")
6000
6000
6001
6001
Specifying a ``chunksize`` yields a
6002
-
:class:`~pandas.io.stata.StataReader` instance that can be used to
6002
+
:class:`pandas.api.typing.StataReader` instance that can be used to
6003
6003
read ``chunksize`` lines from the file at a time. The ``StataReader``
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v2.1.0.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,7 @@ Other enhancements
86
86
- Add dtype of categories to ``repr`` information of :class:`CategoricalDtype` (:issue:`52179`)
87
87
- Added to the escape mode "latex-math" preserving without escaping all characters between "\(" and "\)" in formatter (:issue:`51903`)
88
88
- Adding ``engine_kwargs`` parameter to :meth:`DataFrame.read_excel` (:issue:`52214`)
89
+
- Classes that are useful for type-hinting have been added to the public API in the new submodule ``pandas.api.typing`` (:issue:`48577`)
89
90
- Implemented ``__from_arrow__`` on :class:`DatetimeTZDtype`. (:issue:`52201`)
90
91
- Implemented ``__pandas_priority__`` to allow custom types to take precedence over :class:`DataFrame`, :class:`Series`, :class:`Index`, or :class:`ExtensionArray` for arithmetic operations, :ref:`see the developer guide <extending.pandas_priority>` (:issue:`48347`)
91
92
- Improve error message when having incompatible columns using :meth:`DataFrame.merge` (:issue:`51861`)
0 commit comments