Skip to content

Commit 827e606

Browse files
Backport PR #35776: Changed 'int' type to 'integer' in to_numeric docstring (#35806)
Co-authored-by: edwardkong <[email protected]>
1 parent 92a6c3a commit 827e606

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/arrays/sparse/array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin):
234234
3. ``data.dtype.fill_value`` if `fill_value` is None and `dtype`
235235
is not a ``SparseDtype`` and `data` is a ``SparseArray``.
236236
237-
kind : {'int', 'block'}, default 'int'
237+
kind : {'integer', 'block'}, default 'integer'
238238
The type of storage for sparse locations.
239239
240240
* 'block': Stores a `block` and `block_length` for each

pandas/core/tools/numeric.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ def to_numeric(arg, errors="raise", downcast=None):
4040
- If 'raise', then invalid parsing will raise an exception.
4141
- If 'coerce', then invalid parsing will be set as NaN.
4242
- If 'ignore', then invalid parsing will return the input.
43-
downcast : {'int', 'signed', 'unsigned', 'float'}, default None
43+
downcast : {'integer', 'signed', 'unsigned', 'float'}, default None
4444
If not None, and if the data has been successfully cast to a
4545
numerical dtype (or if the data was numeric to begin with),
4646
downcast that resulting data to the smallest numerical dtype
4747
possible according to the following rules:
4848
49-
- 'int' or 'signed': smallest signed int dtype (min.: np.int8)
49+
- 'integer' or 'signed': smallest signed int dtype (min.: np.int8)
5050
- 'unsigned': smallest unsigned int dtype (min.: np.uint8)
5151
- 'float': smallest float dtype (min.: np.float32)
5252

0 commit comments

Comments
 (0)