Skip to content

Commit

Permalink
DOC: add series.info to api reference (#60926)
Browse files Browse the repository at this point in the history
* docs: add series.info to api reference

* fixup
  • Loading branch information
MarcoGorelli authored Feb 13, 2025
1 parent 0305656 commit cb33796
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/source/reference/series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Attributes
Series.array
Series.values
Series.dtype
Series.info
Series.shape
Series.nbytes
Series.ndim
Expand Down
1 change: 1 addition & 0 deletions doc/source/whatsnew/v3.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Other enhancements
- :class:`pandas.api.typing.SASReader` is available for typing the output of :func:`read_sas` (:issue:`55689`)
- :meth:`pandas.api.interchange.from_dataframe` now uses the `PyCapsule Interface <https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html>`_ if available, only falling back to the Dataframe Interchange Protocol if that fails (:issue:`60739`)
- Added :meth:`.Styler.to_typst` to write Styler objects to file, buffer or string in Typst format (:issue:`57617`)
- Added missing :meth:`pandas.Series.info` to API reference (:issue:`60926`)
- :class:`pandas.api.typing.NoDefault` is available for typing ``no_default``
- :func:`DataFrame.to_excel` now raises an ``UserWarning`` when the character count in a cell exceeds Excel's limitation of 32767 characters (:issue:`56954`)
- :func:`pandas.merge` now validates the ``how`` parameter input (merge type) (:issue:`59435`)
Expand Down
7 changes: 6 additions & 1 deletion pandas/io/formats/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,17 @@
Series.describe: Generate descriptive statistics of Series.
Series.memory_usage: Memory usage of Series."""
)
series_max_cols_sub = dedent(
"""\
max_cols : int, optional
Unused, exists only for compatibility with DataFrame.info."""
)


series_sub_kwargs = {
"klass": "Series",
"type_sub": "",
"max_cols_sub": "",
"max_cols_sub": series_max_cols_sub,
"show_counts_sub": show_counts_sub,
"examples_sub": series_examples_sub,
"see_also_sub": series_see_also_sub,
Expand Down

0 comments on commit cb33796

Please sign in to comment.