Skip to content

Update integer_na.rst with multiple improvements. #51907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/source/user_guide/integer_na.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ implemented within pandas.
arr = pd.array([1, 2, None], dtype=pd.Int64Dtype())
arr

Or the string alias ``"Int64"`` (note the capital ``"I"``, to differentiate from
Or the string alias ``"Int64"`` (note the capital ``"I"``) to differentiate from
NumPy's ``'int64'`` dtype:

.. ipython:: python
Expand Down Expand Up @@ -67,7 +67,7 @@ with the dtype.
pd.array([1, 2])

For backwards-compatibility, :class:`Series` infers these as either
integer or float dtype
integer or float dtype.

.. ipython:: python

Expand Down Expand Up @@ -101,7 +101,7 @@ dtype if needed.
# comparison
s == 1

# indexing
# slicing operation
s.iloc[1:3]

# operate with other dtypes
Expand All @@ -110,7 +110,7 @@ dtype if needed.
# coerce when needed
s + 0.01

These dtypes can operate as part of ``DataFrame``.
These dtypes can operate as part of a ``DataFrame``.

.. ipython:: python

Expand All @@ -119,7 +119,7 @@ These dtypes can operate as part of ``DataFrame``.
df.dtypes


These dtypes can be merged & reshaped & casted.
These dtypes can be merged, reshaped & casted.

.. ipython:: python

Expand Down