Skip to content

Commit 8305a85

Browse files
DOC: Fix PR06 (type names) in docstrings (#33093)
Co-authored-by: Farhan Reynaldo <[email protected]>
1 parent a6c610d commit 8305a85

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pandas/core/arrays/sparse/array.py

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

pandas/core/groupby/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class providing the base-class of operations.
211211
212212
Parameters
213213
----------
214-
func : callable or tuple of (callable, string)
214+
func : callable or tuple of (callable, str)
215215
Function to apply to this %(klass)s object or, alternatively,
216216
a `(callable, data_keyword)` tuple where `data_keyword` is a
217217
string indicating the keyword of `callable` that expects the

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 : {'integer', 'signed', 'unsigned', 'float'}, default None
43+
downcast : {'int', '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-
- 'integer' or 'signed': smallest signed int dtype (min.: np.int8)
49+
- 'int' 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)